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

Added date search for Vox. To accomplish this, enhanced find_by_date … #209

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Go1den
Copy link

@Go1den Go1den commented Nov 5, 2024

Added date search for Vox. To accomplish this, enhanced find_by_date to return a list of candidate URLs. xword_dl.py now looks to see if it was passed a candidate URL list, and if so, it attempts to find a puzzle at any of the candidate URLs.

For example, in the case of Vox, all of the puzzle URLs contain an author prefix and a numeric suffix. These prefixes and suffixes are limited in possibility. Therefore, if we build a list of all the possible combinations, it's possible to derive the correct puzzle url.

Caveats: This relies on the website being consistent in how they build these puzzle IDs. Vox is hilariously bad at this (or maybe intentionally doing it)
Examples:
The puzzle on 2024-10-29 incorrectly used 20241028 as its date in the url.
The puzzles between 2020-04-10 and 2020-04-24 insert an extra 0 in the date string.

For the vast majority of puzzles, this script will work, but it is not flawless.

…to return a list of candidate URLs. xword_dl.py now looks to see if it was passed a candidate URL list, and if so, it attempts to find a puzzle at any of the candidate URLs.
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

Successfully merging this pull request may close these issues.

1 participant