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

feat: script to extract historical data for a field (e.g. Nutri-Score) for a set of products #10408

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

stephanegigandet
Copy link
Contributor

@stephanegigandet stephanegigandet commented Jun 6, 2024

Needed to get Nutri-Score labels on packaging, at different years, for a study.

Sample usage for the Nutricourses study:

off@off:/home/stephane/nutricourses$ (off) more nutricourses.sh 
#/bin/sh
export PERL5LIB=/srv/off/lib
/srv/off/scripts/extract_historical_product_data.pl --min-year 2017 --max-year 2024 --recompute-taxonomies --field label
s_tags=en:nutriscore-grade- --omit-prefix --codes-file nutricourses.csv

Sample output:
image

Copy link

sonarcloud bot commented Jun 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@stephanegigandet stephanegigandet changed the title feat: script to extract historical data for a field (e.g. Nutri-Score) for a set of products - WIP feat: script to extract historical data for a field (e.g. Nutri-Score) for a set of products Jun 7, 2024
@teolemon teolemon added ✨ Feature Features or enhancements to Open Food Facts server product history We have kept 10 years of product revisions. This is useful to monitor edits & product improvements labels Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature Features or enhancements to Open Food Facts server product history We have kept 10 years of product revisions. This is useful to monitor edits & product improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants