https://github.com/hrw/very-simple-planet-aggregator
Very Simple Planet Aggregator
https://github.com/hrw/very-simple-planet-aggregator
Last synced: about 1 year ago
JSON representation
Very Simple Planet Aggregator
- Host: GitHub
- URL: https://github.com/hrw/very-simple-planet-aggregator
- Owner: hrw
- License: mit
- Created: 2020-01-21T20:01:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-26T16:58:08.000Z (over 2 years ago)
- Last Synced: 2024-04-10T04:42:26.917Z (about 2 years ago)
- Language: Python
- Size: 29.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-planet-pluto - hrw/very-simple-planet-aggregator - [Article](https://marcin.juszkiewicz.com.pl/2020/01/22/vspa-very-simple-planet-aggregator/) (Related Projects / [New Horizons - Build Your Own (Static) Planet News Site w/ Pluto (and Ruby)](https://github.com/geraldb/talks/blob/master/planet.md) - @geraldb)
README
# Very Simple Planet Aggregator
As Venus was Python 2 only I decided that I need something else to run my
[Developer's Planet](https://devplanet.one.pl/) aggregator.
This is the result of few hours of playing with FeedParser and Jinja2.
# Usage
1. Run `init.py planet.ini` to create database and import feeds from Venus
config file.
2. `fetch.py` script will connect to each feed and fetch it's posts.
3. `generate.py` loads template files and outputs result (HTML page and RSS 2.0
feed XML).
# Features
- first eight posts are then added to database. Amount is hard coded.
- if server responds with HTTP 301 then feed address will be updated.
- content of ETag and last modified date headers are stored in database and used
if present
- use '--force' option with 'fetch.py' script to force refresh