Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Quick and dirty script for exporting recipes from Brewtoad

Notifications You must be signed in to change notification settings

matiaskorhonen/brewtoad-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brewtoad export script

Quick and dirty script for exporting recipes from Brewtoad since it's shutting down on 2018-12-31.

The script uses Chromium (via Puppeteer) to generate a PDF of each recipe. It also downloads the recipes as BeerXML and JSON.

Requirements

  • A recent version of Node.js (tested with v8.12)
  • Yarn

Usage

First clone the repo, then:

yarn install
node index.js PROFILE_URL [USERNAME] [PASSWORD]

Replace PROFILE_URL with the URL to your recipes on Brewtoad (e.g. https://www.brewtoad.com/users/45285/recipes).

USERNAME and PASSWORD are optional. If all your recipes are public you don't need to sign in.

Examples

# Fetch recipes without signing in:
node index.js https://www.brewtoad.com/users/45285/recipes

# Fetch recipes as a signed in user:
node index.js https://www.brewtoad.com/users/45285/recipes user@example.com supersecret123

Limitations

  • Doesn't handle any sort of pagination on the recipes page (I don't have enough recipes for that)
  • There's no error handling, if something explodes the script stops
  • It worked for me as is, it might explode for whatever reason in your case
  • Brewtoad is unreliable now, things may or may not work

About

Quick and dirty script for exporting recipes from Brewtoad

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published