OAuth with tweepy
VIA: https://github.com/tweepy/tweepy/blob/4799c740a20882e854a636e2721164cd5841a6c8/doc/auth_tutorial.rst OAuth Authentication OAuth is a bit trickier than basic auth, but there are some advantages to using it: You can set a 'from myappname' which will appear in tweets posted More secure since you don't need the user's password Your app does not break if the user changes their password in the future Tweepy tries to make OAuth as painless as possible for you. To begin the process we need to register our client application with Twitter. Create a new application and once you are done you should have your consumer token and secret. Keep these two handy, you'll need them. The next step is creating an OAuthHandler instance. Into this we pass our consumer token and secret which was given to us in the previous paragraph: auth = tweepy.OAuthHandler(consumer_token, consumer_secret) If you have a web application and are using a callback URL that needs to be supplied dy...