As Venus was Python 2 only I decided that I need something else to run my Developer's Planet aggregator.
This is the result of few hours of playing with FeedParser and Jinja2.
- Run
init.py planet.ini
to create database and import feeds from Venus config file. fetch.py
script will connect to each feed and fetch it's posts.generate.py
loads template files and outputs result (HTML page and RSS 2.0 feed XML).
- 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