thisisparker / xword-dl

⬛⬜⬛ Command line tool to scrape crosswords from online solvers and save them as .puz files ⬛⬜⬛
MIT License
145 stars 31 forks source link

Premier puzzles downloader #121

Open ehcloninger opened 1 year ago

ehcloninger commented 1 year ago

Solution for #115.

New file premierdownloader.py implements a class based on CrosswordCompilerDownloader with 3 subclasses for the individual puzzle sources (Premier, Sheffer, Joseph). All three can accept 'latest' as well as --date input. Proper checks for whether the puzzle is available that day (Premier is Sunday only, while Sheffer and Joseph are all but Sunday).

I've tested various dates for both positive and negative reactions.

Based on our discussion in the issue thread, you might have to adjust the import statement to work in your environment. This works for me on Mac and Windows under VS Code.