Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimport FoodRepo #9352

Open
teolemon opened this issue Nov 21, 2023 · 3 comments
Open

Reimport FoodRepo #9352

teolemon opened this issue Nov 21, 2023 · 3 comments
Labels
Data import FoodRepo 🇩🇪 Germany https://wiki.openfoodfacts.org/Local_Communities/GermanTeam 🎯 P1 🇨🇭 Switzerland https://wiki.openfoodfacts.org/Local_Communities/SwissTeam/Country_Support 🇺🇸 United States Project to improve support in the United States.

Comments

@teolemon
Copy link
Member

teolemon commented Nov 21, 2023

What

@teolemon teolemon added Data import 🇨🇭 Switzerland https://wiki.openfoodfacts.org/Local_Communities/SwissTeam/Country_Support FoodRepo 🎯 P1 labels Nov 21, 2023
@CharlesNepote
Copy link
Member

What (precisions)

  • Germany: 11,000+ products
  • Italy: 2700 products
  • Switzerland: 37,000 products
  • USA: 320,000 products

How to

Foodrepo does not provide CSV file, only API access.

We have this script but based on a CSV file:

  • We firstly need to download the data as JSON with the API. (Bash + Curl?)
  • Then convert it to CSV? (in2csv or jq?)
  • Then download the photos?
  • Then see if convert_foodrepo_data.pl is still working?

@CharlesNepote CharlesNepote added 🇺🇸 United States Project to improve support in the United States. 🇩🇪 Germany https://wiki.openfoodfacts.org/Local_Communities/GermanTeam labels Nov 21, 2023
@stephanegigandet
Copy link
Contributor

Most of it is just the USDA database imported in foodrepo 2 years ago.

About 1500 products were added in the last year.

@teolemon
Copy link
Member Author

There are only 7 full pages of products more recent than the USDA for the US (and with photos): https://www.foodrepo.org/fr/products?page=7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data import FoodRepo 🇩🇪 Germany https://wiki.openfoodfacts.org/Local_Communities/GermanTeam 🎯 P1 🇨🇭 Switzerland https://wiki.openfoodfacts.org/Local_Communities/SwissTeam/Country_Support 🇺🇸 United States Project to improve support in the United States.
Projects
Status: To discuss and validate
Development

No branches or pull requests

3 participants