NY Times Crossword to Puz
CLI tool to convert NY Times crosswords into Across Lite files (.puz).
This is a fork of nytxw_puz with some major differences:
- No browser installations are required. Authentication is performed by the program itself.
- Targeted for headless deployments and thus is non-interactive.
- Supports batch downloading with rate limiting and timeout.
Usage
pip install nytxw-puz-cli
nytxw_puz --help
Credentials
The program expects a JSON credentials file to be passed via the --credentials flag. The expected format of the JSON is simple and as follows:
{"email": "user@domain.com", "password": "my-password"}
Example Using Flags
A simple example downloading a single crossword:
nytxw_puz --credentials my-creds.creds --urls https://www.nytimes.com/crosswords/game/daily/2020/12/31 --filenames ~/puzzles/2020/12/31.puz
Example Using stdin
A full example of a run using cookie import/export and input of URL,FILENAME entries named tasks.csv via stdin:
nytxw_puz --credentials my-creds.creds --import-cookies mycookies.cookies --export-cookies mycookies.cookies -v < tasks.csv
nytxw_gen
nytxw_gen is a small tool to help generate date ranges of crossword puzzles in CSV format to pass into nytxw_puz. For example:
nytxw_gen --start 2012-07-18 --end 2014-12-31 --path-format "~/puzzles/<year>/<month>/<day>.puz" > puzzles-to-download.csv
Development
Getting Started
This repository uses poetry to manage dependencies and environments. To get started quickly, run:
cd nytxw-puz-cli
poetry install
Code Style
For Python, the repository uses the default settings of the Black code formatter.
Conformance can be enforced by using black as follows:
black <file-name>
Metadata
Release files for nytxw-puz-cli 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nytxw-puz-cli-1.1.0.tar.gz | 21.6 kB | Without provenance | Details for nytxw-puz-cli-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nytxw_puz_cli-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for nytxw_puz_cli-1.1.0-py3-none-any.whl |
Total release size: 43.4 kB
Release files / nytxw-puz-cli-1.1.0.tar.gz
| Download URL | nytxw-puz-cli-1.1.0.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26065332d89468fea08525a922c6e10711730262ed18e4d69a5a7db26b353a55
|
|
BLAKE2b-256 checksum How to use checksums |
18317c2c106ffe221e7d48a4336058e83474ff41d13d915ce60edf89f4907351
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Linux/5.10.84-1-MANJARO
|
Release files / nytxw_puz_cli-1.1.0-py3-none-any.whl
| Download URL | nytxw_puz_cli-1.1.0-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acb89c93c06171700d88d12dcb8ee45981cff45d1e92309db67cf6835e55986f
|
|
BLAKE2b-256 checksum How to use checksums |
137c5265f1bfebb017732d61cb9e494030f7976f693662a732bb03dbe9fb3334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Linux/5.10.84-1-MANJARO
|
Security for nytxw-puz-cli 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.