kesyog / crossword

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

πŸ““ Minimize re-requests by storing data for unsolved and aided puzzles #3

Closed kesyog closed 3 years ago

kesyog commented 3 years ago

Issues addressed

Data for unsolved puzzles and puzzles where cheats were used were being unnecessarily re-requested on each program run.

  1. Each puzzle has a unique, constant puzzle id on the NYT servers, and the date<->puzzle id mapping for these puzzles was being re-requested on each program iteration.
  2. Data for unsolved puzzles needs to be queried on each program iteration to see if they have been newly solved. Puzzles where cheats were used were treated the same as unsolved even though their status won't change in subsequent runs.

Summary of changes

Tangential changes

Results

The total number of requests made for my data after the initial program run went down ~3x πŸš€