Skip to content

A realtime server deployed tweeter bot capable of tweeting and doing things on twitter with just a tweepy script and some conditional programming.

License

Notifications You must be signed in to change notification settings

mmaithani/Omniverse-Bot

Repository files navigation

Twitter Bot - omniverse_bot

forthebadge made-with-python

Build Status

This Twitter Bot is a cloud Server Deployed and work 24/7, tweeting india trends like whats people been talking about.

Technology Used

PyPI version fury.io

  • Python 3 (Coding language to write code for your Bot)
  • PyPI pyversions
  • 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

Bash Shell

$ python yourbotscript.py

Features!

  • 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

Got some idea what Bots can do ?

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.

Requirement & Installation

  • 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

Testing code

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

Development

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.

License License: MIT

Copyright (c) 2020 Mohit Maithani