Recipe download script. Will format the recipe into JSON, Markdown, or reStructuredText. I tend to use more reStructuredText so that is the default output format.
Usage: ./recipe-dl.sh [-ahjmros] [-i infile] [-o outfile] <URL> [<URL] ...
-a|--authorize Force authorization of Cook Illustrated sites
-h|--help Display help
-j|--output-json Output results in JSON format
-m|--output-md Output results in Markdown format
-r|--output-rst Output results in reStructuredText format
-i|--inputfile infile (Currently Unsupported) Specify input JSON file infile
-o|--outfile outfile Specify output file outfile
-s|--save-to-file Save output file(s)
Currently this has been tested for the following sites:
- Cook's Illustrated (Subscription Required)
- Cook's Country (Subscription Required)
- America's Test Kitchen (Subscription Required)
- New York Times
- Bon Appetit
- FoodNetwork.com
- CookingChannelTV.com
Copy recipe-dl.sh to /opt.
curl https://raw.githubusercontent.com/rodneyshupe/recipe-dl.sh/master/recipe-dl.sh --output /opt/recipe-dl.sh && chmod + x /opt/recipe-dl.sh
curl https://raw.githubusercontent.com/rodneyshupe/recipe-dl.sh/master/rst2recipe.sh --output /opt/recipe-dl.sh && chmod + x /opt/rst2recipe.sh
Create symbolic links to somewhere on the path.
ln -s /opt/rst2recipe.sh /usr/local/bin/rst2recipe
ln -s /opt/rst2recipe.sh /usr/local/bin/rst2recipe
The following packages are required: