I am having an issue to connect to stream.twitter.com using Tweepy Stream class. I am using a proxy.
Here is the code snippet:
myStream = tweepy.Stream(auth, listener=myStreamListener, proxy=‘my_proxy’)
Using the proxy I am able to connect to “api.twitter.com” and pull the tweets. However, when Tweepy Stream is used, it throws the connection error.
Need some help here please?
ConnectionError: HTTPSConnectionPool(host=‘stream.twitter.com’, port=443): Max retries exceeded with url: /1.1/statuses/filter.json?delimited=length (Caused by NewConnectionError(’<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000BC3CEB8>: Failed to establish a new connection: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond’,))
Thanks in advance!