This Twitter Bot is a cloud Server Deployed and work 24/7, tweeting india trends like whats people been talking about.
- Python 3 (Coding language to write code for your Bot)
- Tweepy (python Module for managing/automating tweeter account)
- pythonanywhere (A online integrated development environment and web hosting service based on the Python programming language.)
For running your bot 24/7 live you can sign up on Pythonanywhere And upload your code and keys into server and Run this Simple Command in your Bash terminal
$ python yourbotscript.py
- Like the tweets according to condition written in code.
- Retweet tweet aautomatically (currently retweeting trending tweets in indian Users)
You can also:
- Make this bot to like, comment and retweet a specific user.
- With automated 100 tweet bot you can create your bot small agency which will do whatever you want them to do.
- You can Bomb likes or use them for Giveaways and other sort of things.
- Or you can handle bots just by changing your Bio status with coditional programming and it wil read case queries from your profile
When Henry Ford made cheap, reliable cars, people said, ‘Nah, what’s wrong with a horse?’ That was a huge bet he made, and it worked.
Elon Musk CEO of SpaceX.
- First create Twitter Developer Account from here
- Get the token and all other keys from tweeter developer account and save them in
keys.py
- Now install Python from here if you first want to run your scripts in local machine.
- Install Tweepy The easiest way to install the latest version from PyPI is by using pip:
$ pip install tweepy
You can also use Git to clone the repository from GitHub to install the latest development version:
git clone https://github.com/tweepy/tweepy.git
cd tweepy
pip install .
Alternatively, install directly from the GitHub repository:
pip install git+https://github.com/tweepy/tweepy.git
- get the codes from
twitter bot1.ipynb
file
consumer_key = "place your consumer key here which you got from twitter deveoloper account "
consumer_secret = "#"
access_token = "#"
access_token_secret = "#"
import tweepy
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
public_tweets = api.home_timeline()
for tweet in public_tweets:
print(tweet.text) #this will print your recent tweets form twitter account
Want to contribute? Great! Open your favorite Terminal and run these commands.
First Tab:
$ git clone https://github.com/mmaithani/Omniverse-Bot.git
Create the branch on your local machine and switch in this branch :
$ git checkout -b [name_of_your_new_branch]
Edit files, add and commit. Then push with the -u (short for --set-upstream) option:
$ git push -u origin <branch>
Git will set up the tracking information during the push.