Skip to content

RaulS963/twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

twitter-bot

Simple twitter bot using tweepy

$ pip install -r requirements.txt

Authenticate to Twitter:

import tweepy

auth = tweepy.OAuthHandler("CONSUMER_KEY", "CONSUMER_SECRET")
auth.set_access_token("ACCESS_TOKEN", "ACCESS_TOKEN_SECRET")
api = tweepy.API(auth)

Check if authentication is a success:

try:
    api.verify_credentials()
    print("authentication success!")
except:
    print("error in authentication")

Upload a status or Tweet your message:

api.update_status("Hello Twitter #tweepy")

Twitter Account Used: @ScarletDemonic

Releases

No releases published

Packages

No packages published

Languages