Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NYT downloader broken due to removal of .puz files #157

Open
jpd236 opened this issue Aug 11, 2021 · 2 comments
Open

NYT downloader broken due to removal of .puz files #157

jpd236 opened this issue Aug 11, 2021 · 2 comments

Comments

@jpd236
Copy link
Contributor

jpd236 commented Aug 11, 2021

FYI, the NYT downloader is no longer functional as of today as .puz files have been removed from the site (see https://www.nytimes.com/2021/08/02/crosswords/nyt-games-no-longer-available-on-across-lite-as-of-aug-9.html).

At least at the moment, the puzzle data is embedded on the puzzle HTML pages as a bit of compressed JSON, so it can be scraped, though it needs another layer to convert it. And there are some features like image overlays on the grid that aren't supported by any format XWord currently supports, to my knowledge (though perhaps they could be handled with a proprietary ipuz extension or something along those lines).

If it helps, here's a reference implementation of a parser from the raw HTML: https://github.com/jpd236/kotwords/blob/master/src/commonMain/kotlin/com/jeffpdavidson/kotwords/formats/NewYorkTimes.kt

@mrichards42
Copy link
Owner

That's unfortunate. I was under the impression that the NYT downloader stopped working a long time ago b/c they changed their login form. Do you know if it was actually working before this?

@jpd236
Copy link
Contributor Author

jpd236 commented Aug 16, 2021

Ah - I hadn't checked it myself, was just passing along the info. You're right that the login form has changed, and #54 (comment) does note that it wasn't fixed as part of the last sweep.

If you ever do get the login working again, then this would also likely need to be fixed. That said, at least for now, it appears the .puz files are still being shadow posted at a hidden URL (https://nytimes.com/svc/crosswords/v2/puzzle/daily-YYYY-MM-DD.puz), so maybe this won't be necessary for a while. Who knows :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants