Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KatieZZY authored Aug 9, 2020
1 parent cb234d5 commit fd64c81
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@ Download the following files into the same directory
* grocery.py
* sr27asc files to identify food groups (USDA National Nutrient Database for Standard Reference, Release 27)

Create a .txt file in the same directory listing a URL with the recipe on each line. For example:
Create a list of urls (a .txt file) in the same directory listing a URL with the recipe on each line. For example:
```
https://thewoksoflife.com/chinese-walnut-cookies/
https://www.justonecookbook.com/japanese-potato-salad/
https://tasty.co/recipe/fluffy-jiggly-japanese-cheesecake
```

In your command prompt:
* set your working directory to the folder where you have downloaded the .py and sr27asc files
* run the the following command `python grocery.py '<listofurls.txt>'`

A listofurls.csv will then be generated in the same directory.

# Sources
The ingredient parser in this code uses the open source engine at by [schollz](https://schollz.com/blog/ingredients/).

0 comments on commit fd64c81

Please sign in to comment.