figgybit/IRC-Tweet-BOT
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
this script is good to connect a twitter user to an IRC channel. dependencies tweepy - twitter streaming api oyoyo - irc chat library make sure you follow tweepy's instructions for oAuth make sure you register your app: http://twitter.com/oauth_clients ##example python code import tweepy auth = tweepy.OAuthHandler(consumer_token, consumer_secret) try: redirect_url = auth.get_authorization_url() except tweepy.TweepError: print 'Error! Failed to get request token.' ##take the url and login with the account you want to link ## and notate the value for verifier auth.set_request_token(auth.request_token.key, auth.request_token.secret) try: token = auth.get_access_token(verifier) except tweepy.TweepError: print 'Error! Failed to get access token.' ##use these two values for the values of key and secret in the script token.key token.secret