python 2.7 - InsecurePlatformWarning Using Tweepy -
i'm using python 2.7.7 on mac book air. i've copied code official tweepy documentation - http://docs.tweepy.org/en/latest/streaming_how_to.html?highlight=stream.
import tweepy consumer_key = "***" consumer_secret = "***" access_token = "***" access_token_secret = "***" auth = tweepy.oauthhandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.api(auth) class mystreamlistener(tweepy.streamlistener): def on_status(self, status): print(status.text) mystreamlistener = mystreamlistener() mystream = tweepy.stream(auth = api.auth, listener=mystreamlistener()) mystream.filter(track=['@soroushg_'])
but whenever run code says
insecureplatformwarning: true sslcontext object not available. prevents urllib3 configuring ssl appropriately , may cause ssl connections fail.
if knows why love know. in advance.
it's pip problem, had update pip!
Comments
Post a Comment