https://github.com/capjamesg/hacker-news-poetry
Poetry generated programmatically from the front page of Hacker News. Reset hourly.
https://github.com/capjamesg/hacker-news-poetry
hacker-news poetry poetry-generator
Last synced: 7 months ago
JSON representation
Poetry generated programmatically from the front page of Hacker News. Reset hourly.
- Host: GitHub
- URL: https://github.com/capjamesg/hacker-news-poetry
- Owner: capjamesg
- License: mit
- Created: 2024-03-02T22:11:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-04T09:30:10.000Z (over 1 year ago)
- Last Synced: 2025-03-28T19:16:38.362Z (7 months ago)
- Topics: hacker-news, poetry, poetry-generator
- Language: HTML
- Homepage: https://hnpoetry.jamesg.blog
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hacker-news-poetry
Poetry generated programmatically from the front page of Hacker News. Reset hourly.
[View the latest poems](https://hnpoetry.jamesg.blog).
## Examples
- like a section in the server
- be historical and high
- the last safety of instability
- for all the last expectations
- for all the observational programming
- from Hacker News, I learned pdf
- my heart, keyboard(Generated from the homepage on March 2nd, 2024)
## Installation
To install this software, run:
```
git clone https://github.com/capjamesg/hacker-news-poetry
cd hacker-news-poetry/
pip3 install tracery flair requests tqdm jinja2
```To generate poems, run:
```
python3 hn.py
```The script retrieves new titles and generates poems.
For testing, comment out the `get_front_page()` function call once you have run the script once. This will allow you to generate poems without retrieving the homepage and its associated titles for each time you run the script.
## License
This project is licensed under an [MIT license](LICENSE).