Twitter Links to RSS feed generator
This script will monitor a search term on twitter and produce an RSS feed of the unique links, using mongodb to save a copy of each link to prevent duplicates. It is designed to be run as an hourly scheduled task on heroku, and produces an RSS feed that is then stored on amazon S3. As there is no web
process running it shouldn't incur any costs on heroku.
Prerequisites
You'll need twitter oauth access keys already setup, a heroku account and Amazon S3 access details.
Setup
# Get the script git clone https://github.com/bigblue/twitter_digest.gitcd twitter_digest # Setup the environment variables mv .env.sample .env#-> Edit .env with your own twitter oauth keys and s3 access details # Create a new heroku app heroku createheroku plugins:install git://github.com/ddollar/heroku-config.githeroku config:pushheroku addons:add mongolabheroku addons:add scheduler:standardgit push heroku master # Test everything is setup correctly heroku run node cli.js "your twitter search terms"#-> Once it is run it should print out the URL for the generated xml file, # which you can add to your feed reader # Setup the scheduled task heroku addons:open scheduler#-> Setup a new hourly job with the command node cli.js "your twitter search terms"
Contributing
- Create an issue to discuss about your idea
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Profit! ✅
License
Released under the MIT License.