Scrape your NYT crossword puzzle times into a CSV.
node index.js --key <jwt key> --start 2018-01-01 --end 2018-12-31 --out results.csv
--key
Required. A working JSON Web Token (JWT) from your NYT login (see below)
--start
Required. The date to start pulling stats, formatted as yyyy-mm-dd.
--end
The date to stop pulling stats. Default is today.
--out
Specify output file. Default is results.csv.
Your JWT can be found by inspecting your network requests while logged in to the web version of the New York Times Crossword website. Specific instructions differ by browser, but generally the steps are:
- Visit nytimes.com/crossword with your browser's developer tools open to the Network tab.
- Log in to your account, or refresh the page.
- In the Network tab, filter the list of requests by json, and look for a request like
progress.json
,mini-stats.json
, orhub.json
. - Inspect the request parameters and look for the
nyt-s
param. This is your JWT key.