Deletes Tweets older than hashtag specified duration, in the form of /#\d+[hmd]/.
Note: Does not work when deployed on Heroku.
-
Clone repository.
$ git clone https://github.com/iphoting/TweetSnipper $ cd TweetSnipper -
Create a Twitter API application here.
-
Create a
.envfile within the clone with the following details:TWITTER_USERNAME="username" CONSUMER_KEY="API_key..." CONSUMER_SECRET="API_secret..." ACCESS_TOKEN="12345-xxyyy" ACCESS_SECRET="09384xxyy" -
Use bundler to fetch dependencies.
$ bundle install -
Run the app.
$ ruby tweetsnipper.rb -
Add the app to cron or launchd.