kesyog / crossword

Scraping personal NYT crossword stats
Apache License 2.0
33 stars 6 forks source link

More detailed instruction for getting NYT Token? #6

Closed nikhgarg closed 1 year ago

nikhgarg commented 1 year ago

Hi, I'm not sure I understand exactly how to get my token. I've done inspect > network on Chrome, but there are many lines that come out when I load a crossword. What exactly should I look for to get my NYT token?

kesyog commented 1 year ago

I'll work on beefing up the instructions, but for now (using Chrome):

  1. Open the Network tab in Developer Options
  2. Open https://www.nytimes.com/crosswords
  3. Find a request for some kind of json file. e.g. progress.json, mini-stats.json, or stats-and-streaks.json
  4. In the headers pane, find the value of nyt-s in the list of request headers. That is your token.
nikhgarg commented 1 year ago

Thank you, that worked!