Tweepy and flask: failed to get request token Tweepy and flask: failed to get request token flask flask

Tweepy and flask: failed to get request token


It looks like Tweepy defaults to using http:// protocols for the oauth endpoints. You'll need to change your code to force it to use https://. This might fix your problem.

You do it when you instantiate the OAuthHandler class like this:

auth = tweepy.OAuthHandler(CONSUMER_TOKEN,     CONSUMER_SECRET,     CALLBACK_URL, secure=True)