auino / cookidump

Easily dump cookidoo recipes
MIT License
142 stars 33 forks source link

Fork with proposal of various improvement #26

Open psychowood opened 1 year ago

psychowood commented 1 year ago

Hi, I forked the repo to add a few (at least imho :) ) useful additions.

There are quite a bit of changes, I'll just dump the inline help here:

usage: cookidump.py [-h] [-s] [-l LOCALE] [--searchquery SEARCHQUERY] [-p] [--save-cookies | --headless] webdriverfile outputdir

Dump Cookidoo recipes from a valid account

positional arguments:
  webdriverfile         the path to the Chrome WebDriver file
  outputdir             the output directory. If a search query is specified it will be used directly to save the recipes

options:
  -h, --help            show this help message and exit
  -s, --separate-json   creates a separate JSON file for each recipe; otherwise, a single data file will be generated
  -l LOCALE, --locale LOCALE
                        sets locale of cookidoo website (end of domain, ex. de, it, etc.))
  --searchquery SEARCHQUERY
                        the search query to use copied from the site after setting filter, without the domain (e.g. something like
                        "/search/?context=recipes&categories=VrkNavCategory-RPF-013")
  -p, --pdf             saves recipe in pdf format too
  --save-cookies        store cookies in local cookies.json file then exits; to be used with --headless or to avoid login on subsequent runs
  --headless            runs Chrome in headless mode, needs both a cookies.json saved with --save-cookies previously and --searchquery
                        specified

Let me know if you want me to create one (or more) PR.

ndjc commented 7 months ago

Great improvements! I've incorporated the cookie handling and headless mode into my fork ndjc/cookidump.

I've also added away to populate a Cookidoo collection with a set of recipes - together with the previous capability to list collections, you can now exchange collections between users.

mastercreeper66 commented 2 months ago

Great improvements! I've incorporated the cookie handling and headless mode into my fork ndjc/cookidump.

It seems the fork no longer exists, did it get taken down?