This repository has been archived by the owner. It is now read-only.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.flake8 Add style checking. May 18, 2017
.gitignore Ignore pyc files. May 10, 2017
Procfile
README.md
circle.yml
parser.py
requirements-dev.txt
requirements.txt
runtime.txt
server.py Add style checking. May 18, 2017
test_parser.py Add style checking. May 18, 2017

README.md

Wikipedia Current Events to RSS

CircleCI

Deprecation notice: This is no longer being developed here. This was previously deployed on Heroku, but is now deployed at https://www.to-rss.xyz/wikipedia/ The new source is available at https://gitlab.com/clokep/to-rss/

wp-current-events-rss serves the last 7 days of Wikipedia's Current Events as an RSS feed. This is deployed at https://www.to-rss.xyz/wikipedia/.

Information is pulled on demand on each refresh of the page (and is always current).

About

This project runs on Heroku. It is a Flask application that serves a single web page (an RSS feed). It pulls data from the last 7 days of current events from Wikipedia, e.g. a page like https://en.wikipedia.org/wiki/Portal:Current_events/2017_May_8. The Wikicode is parsed using mwparserfromhell to an AST which is then cleaned-up slightly and converted back into HTML. Each day is served as an individual article using in an RSS feed generated using FeedGenerator.