Skip to main content

a download tool for online crossword puzzles

Project description

xword-dl

xword-dl is a command-line tool to download .puz files for online crossword puzzles from supported outlets or arbitrary URLs. For a supported outlet, you can easily download the latest puzzle, or specify one from the archives.

Currently, xword-dl supports:

  • Atlantic (atl)
  • Daily Beast (db)
  • Los Angeles Times (lat)
  • New York Times (nyt)
  • New Yorker (tny)
  • Newsday (nd)
  • USA Today (usa)
  • Universal (uni)
  • Wall Street Journal (wsj)
  • Washington Post (wp)
  • Vox (vox)

To download a puzzle, install xword-dl and run it on the command line.

Installation

The easiest way to install xword-dl is through pip. Install the latest version with:

pip install xword-dl

You can also install xword-dl by downloading or cloning this repository from Github. From a terminal, simply running

python setup.py install

in the downloaded directory may be enough.

But in either case, you probably want to install xword-dl and its dependencies in a dedicated virtual environment. I use virtualenv and virtualenvwrapper personally, but that's a matter of preference. If you're already feeling overwhelmed by the thought of managing Python packages, know you're not alone. The official documentation is pretty good, but it's a hard problem, and it's not just you. If it's any consolation, learning how to use virtual environments today on something sort of frivolous like a crossword puzzle downloader will probably save you from serious headaches in the future when the stakes are higher.

Usage

Once installed, you can invoke xword-dl, providing the short code of the site from which to download. If you run xword-dl without providing a site keyword, it will print some usage instructions and then exit.

For example, to download the latest Newsday puzzle, you could run:

xword-dl nd --latest

or simply

xword-dl nd

You can also download puzzles that are embedded in AmuseLabs solvers or on supported sites by providing a URL, such as:

xword-dl https://rosswordpuzzles.com/2021/01/03/cover-up/

In either case, the resulting .puz file can be opened with cursewords or any other puz file reader.

Specifying puzzle date

Some outlets allow specification of a puzzle to download by date using the --date or -d flag. For example, to download the Universal puzzle from September 22, 2021, you could run:

xword-dl uni --date 9/22/21

The argument provided after the flag is parsed pretty liberally, and you can use relative descriptors such as "yesterday" or "monday".

New York Times authentication

New York Times puzzles are only available to subscribers. Attempting to download with the nyt keyword without authentication will fail. To authenticate, run:

xword-dl nyt --authenticate

and you will be prompted for your New York Times username and password. (Those credentials can also be passed at runtime with the --username and --password flags.)

If authentication is successful, an authentication token will be stored in a config file. Once that token is stored, you can download puzzles with xword-dl nyt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xword_dl-2022.8.12.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xword_dl-2022.8.12-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file xword_dl-2022.8.12.tar.gz.

File metadata

  • Download URL: xword_dl-2022.8.12.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for xword_dl-2022.8.12.tar.gz
Algorithm Hash digest
SHA256 b484afb3da9b8a5c63a3cb40695ae4ad4abc8e06c3dda8bd2474fdad13e66fd2
MD5 3943a67e095d52cfaf4155b6694da743
BLAKE2b-256 0315209f603d9ec2692d0899087d9b44442aa9f23bef9f942acff84a053b9a90

See more details on using hashes here.

File details

Details for the file xword_dl-2022.8.12-py3-none-any.whl.

File metadata

  • Download URL: xword_dl-2022.8.12-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for xword_dl-2022.8.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0ca640b51a0606f942a78144f916aa0f64edc711a255c17579568ae4909ec423
MD5 8baa68c2071771edd3366466d514860d
BLAKE2b-256 8384a8e0d6ce6097aee428c46777723299cf6177351070fb473ac2a80402a4a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page