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

Downloader sources #125

Open
benfishbus opened this issue Oct 19, 2020 · 2 comments
Open

Downloader sources #125

benfishbus opened this issue Oct 19, 2020 · 2 comments

Comments

@benfishbus
Copy link

benfishbus commented Oct 19, 2020

Thanks so much for developing xword!

Suggestion:
How about adding the NYT "from our archives" puzzles to the downloader? Three or four of them are posted for free download from the puzzle page in .puz format.

Question:
Release 0.7.0 is giving me 404 on The New Yorker, but I see source has been updated. Assuming another release is not imminent, can I pull/download default_sources.lua by itself?

@mrichards42
Copy link
Owner

mrichards42 commented Oct 29, 2020

Hi! RE: The New Yorker source, yes, you should be able to pull default_sources.lua and replace the file with that. You could also just change the url in the downloader preferences if you don't want to muck around with replacing the script file, although there's a related bug where the preferences don't save (but see #116 for a simple solution).

I'm happy to add more sources if you have a standard url that can be fetched for a given date (i.e. there's year/month/day in some order in the url). It looks like the "from our archives" puzzles change randomly and don't follow a pattern though, so it might be tricky without writing a custom scraper which can be time-consuming.

@benfishbus
Copy link
Author

Yes, the NYT archives puzzles change randomly. The links only load in a browser, too, so rudimentary scraping via curl/wget doesn't cut it. The whole DOM has to be loaded, then parsed for .puz links in that section. I'm sure this can be done, and served in an RSS feed for easy fetching, but it's beyond my ken (regardless how many times I poke around in it).

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