/recipe-dl.sh

Recipe download script. Will format the recipe into JSON, Markdown, or reStructuredText.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

recipe-dl.sh

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

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)

Compatibility

Currently this has been tested for the following sites:

Install

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

Requirements

The following packages are required: