tron-diasporapsycofr

USDA Food Table

Jun 12th, 2025 (edited)
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | Food | 0 0
  1. #!/bin/bash
  2.  
  3. # Download the file
  4. wget -O "usdaTableFood.xlsx" "https://www.ars.usda.gov/ARSUserFiles/80400530/apps/2021-2023 FNDDS At A Glance - FNDDS Nutrient Values.xlsx"
  5. soffice --headless --convert-to xhtml usdaTableFood.xlsx #usdaTableFood.xhtml
  6. python3 dataFromXhtml.py usdaTableFood.xhtml #usdaTableFood.csv
Tags: USDA DB Food
Advertisement
Add Comment
Please, Sign In to add comment