Skip to content

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

Open
Go1den wants to merge 4 commits intothisisparker:mainfrom
Go1den:go1den/vox_by_date
Open

Added date search for Vox. To accomplish this, enhanced find_by_date …#209
Go1den wants to merge 4 commits intothisisparker:mainfrom
Go1den:go1den/vox_by_date

Conversation

@Go1den
Copy link
Copy Markdown

@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