Twitter Streaming API Python library with proxy support? [closed]
开发者_JAVA百科
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this questionI am looking for a Twitter Streaming API Python library with proxy support. I love tweepy, but unfortunately I haven't seen a way to use an HTTP proxy. Any ideas?
Check this tweepy commit; it uses urllib2 for executing APIMethods through proxies.
Tweepy uses httplib
internally which is too low level to have proxy settings. You have to change Stream._run()
method to connect to proxy instead of target host and use full (with scheme and host) URL in request.
精彩评论