https://github.com/jdan/getxword
Fetches the NYTimes Crossword
https://github.com/jdan/getxword
Last synced: 3 months ago
JSON representation
Fetches the NYTimes Crossword
- Host: GitHub
- URL: https://github.com/jdan/getxword
- Owner: jdan
- Created: 2023-06-11T16:14:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T17:08:43.000Z (over 2 years ago)
- Last Synced: 2025-01-01T02:41:37.476Z (over 1 year ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## getxword
Fetches the [NYTimes Crossword](https://www.nytimes.com/crosswords) with the option to upload it to my [reMarkable 2](https://remarkable.com/) using [rmapi](https://github.com/juruen/rmapi)
### installation
You'll need to save your nytimes.com cookies to cookie.txt. I find it easiest to do this by opening a URL like https://www.nytimes.com/svc/crosswords/v2/puzzle/print/Jun1123.pdf in your browser with Chrome DevTools open, then navigating to the request -> Header -> Cookie

### usage
Fetch the crossword
```sh
getxword # Outputs to a file like Jun1123.pdf
```
Fetch the crossword for a particular date (i.e. July 20, 2022)
```sh
getxword -d Jul2022 # Outputs to Jul2022.pdf
```
Open the crossword
```sh
getxword -o # Downloads the crossword and opens it in your browser
```
Upload the crossword
```sh
getxword -d Jul2022 -u # Uploads the PDF to your remarkable
# renames to 'Wednesday, July 20, 2022' on device
```