Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
(For educational purposes only) Easy to use twitter bot that uses the stream API to search for tweets that contain certain word(s) and replies to them
Python
Branch: master
Pull request Compare This branch is 2 commits ahead of chemalarrea:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
Procfile
README.md
js_twitter_bot.py

README.md

JSTwitterBot v0.1

(For educational purposes only) Easy to use twitter bot that uses the stream API to search for tweets that contain certain word(s) and replies to them. It autoregulates itself so it doesn't exceed the limit of tweets per hour.

How to use:

  • Fill in the parameters:
consumer_key = ""
consumer_secret = ""
access_token_key = ""
access_token_secret = ""

twitter_account_username = ""
twitter_account_password = ""
  • Specify what tweets you want to filter (searching for a particular keyword)
query = ['search'] # words to search
  • Customize what you want to reply to those tweets:
reply = "@" + username + " I'm replying to your tweet with a bot!"
  • Run locally:
python js_twitter_bot.py
  • Or deploy to Heroku and run it as a worker (Procfile included)
Something went wrong with that request. Please try again.