nytc
CLI tool for NYT Cooking recipes.
Installation
Using pipx (recommended)
This installs nytc globally in an isolated environment.
Development install
make install-dev
source .venv/bin/activateSetup
Before using, configure your NYT Cooking authentication:
You'll need to grab your cookie and user ID from your browser:
- Log into cooking.nytimes.com
- Open Developer Tools (F12)
- Go to Application > Cookies > cooking.nytimes.com
- Copy the
NYT-Scookie value - Find your user ID in
regi_cookie(look forregi_id=XXXXXXXX)
Usage
Search for recipes
nytc search "chicken parmesan"Get recipe details
List saved recipes
All commands output JSON to stdout. Errors are output to stderr.
Development
make install-dev # Install with dev dependencies make test # Run tests make clean # Remove venv and caches