mattdodge / nyt-crossword-stats

Fetch your stats as CSVs for completed New York Times Crossword Puzzles

Home Page:https://xwstats.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

login page seems to have changed

stedy opened this issue · comments

https://myaccount.nytimes.com/svc/ios/v2/login is giving me a HTTP 405 error at the moment (HTTP 405 on Chrome, blank page on Firefox)

My guess is the login page has shifted - I will try to poke around and see if I can come up with a fix but just wanted to give you a heads up

That endpoint will only accept HTTP POST requests. If you hit it with a GET, as in from your browser, you will get the HTTP 405 error. That error tells you that the provided "method" (i.e., http verb) is not supported for that endpoint (docs here for more info).

Just tried a POST from my side and it appears to be working fine, so going to close this issue out

Ok looks like I should have been more explicit
I am getting a HTTP 403 error when I try to login via fetch_puzzle_stats.py:
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://myaccount.nytimes.com/svc/ios/v2/login

My guess is that I tried that url in a browser and hence the HTTP 405 error. Regardless, thanks for looking into this!

Ah gotcha - yeah the 403 means the username/password is probably invalid. Or it's possible it's being limited by the NYT auth API. This can happen if the requests are originating from a shared machine or a cloud server - are you running this locally or on AWS or some other cloud environment?