This script tracks the top article on political news aggregation site memeorandum.com. Every time a new article makes it to the top, it's saved to a database and tweeted to @topmemeorandum
The script works by:
- Downloading the latest version of memeorandum.com
- Parsing the key elements from the top post
- Checking the database to see if the post is unique
- If it is, saving it to the DB, and tweeting it
- Register a Twitter account and developer application. I used this script to authorize my account, but there are many other ways to do it
- The Twitter credentials are kept in topmemeo.yml. An example file is provided with the details ommitted
- Run
bundle install
- Profit!
Note: This project is not affiliated in any way with memeorandum.com