https://github.com/vimpunk/poem-hunter-cli
Small CLI program that scrapes poems from https://www.poemhunter.com/
https://github.com/vimpunk/poem-hunter-cli
Last synced: about 1 year ago
JSON representation
Small CLI program that scrapes poems from https://www.poemhunter.com/
- Host: GitHub
- URL: https://github.com/vimpunk/poem-hunter-cli
- Owner: vimpunk
- Created: 2018-04-28T14:54:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-29T09:33:26.000Z (about 8 years ago)
- Last Synced: 2025-02-16T16:58:05.790Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Poem Hunter Command Line Interface
A little script to scrape poems from https://poemhunter.com.
I found that when I discovered a poem by an author I like I usually want to view the rest of their work, but navigating
the webpage was a slightly cumbersome experience. Thus, I wanted to be able to download their collection so I could
explore it via my preferred methods (cli + vim).
It tries to be fast by sending requests on multiple threads, but this is a small script, so it could probably be done
a lot better if more effort were to be put into it.
As far as I could tell, there is no official API, so if you use this, please don't abuse it. It was made for the
occasional personal use.
## Dependencies
requests, lxml
## Usage
To get help:
```bash
./poemhunter.py -h
./poemhunter.py top -h
./poemhunter.py poet -h
```
To download all works of a single artist:
```bash
./poemhunter.py poet 'John Keats' /path/to/poems/folder
```
To download all works of the top 100 artists on poemhunter.com:
```bash
./poemhunter.py top 100 /path/to/poems/folder
```