Open WjcSoso0928 opened 3 years ago
Have you tried to delete the proxy settings in your code? If you are already connected with some sort of TAP device then you don't need any proxy settings here.
Have you tried to delete the proxy settings in your code? If you are already connected with some sort of TAP device then you don't need any proxy settings here.
em... I tried this method, but it's still raise the same error
What Proxy software are you using?
What Proxy software are you using?
I am in China too and I use the ClashR for Win as my proxy software.I have the same problem like WjcSoso0928
and whether I add proxy settings or not, this error is raised.
WARNING:root:Error retrieving https://twitter.com/: ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='twitter.com', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001DF7FF3D248>, 'Connection to twitter.com timed out. (connect timeout=10)'))")), retrying
Yesterday, I use the command "pip install twint" to install twint and use the code like below.
c = twint.Config()
c.Username= "GenshinImpact"
c.Store_object = True
c.Limit = 100
c.Proxy_host = "127.0.0.1"
c.Proxy_port = 7891
c.Proxy_type = "Socks5"
twint.run.Search(c)
And I can get the error CRITICAL:root:twint.run:Twint:Feed:noDataExpecting
, and I am sure that this error meanings the proxy setting works, because i can't get any reply before i use this proxy. I find out that use the newest github repository to install twint will resolve this CRITICAL and I do so. Then the error become the problem I mentioned above.
I noticed that maybe the parameter Tor_control_port
become 9051 differs from the previous versions. Do you have a solution?Thank you very much!
@DoctorDream @WjcSoso0928 I'm using ClashR for Win as well and I don't get any of the errors you guys are talking about. Instead of setting proxy here I turned ClashR TAP mode on, and no errors like that pops up.
Try to use TAP mode first, if not we could come up with something else.
你们解决了吗?我也是这样的问题
Dear all when I use twint demo to get twitter data, it get me a error
this is my code:
I use proxy to connet,because I'm in China you know have some prohibit reason
this is error code:
I can get the Google and Youtebe pages and also I can get tweepy data with this proxy but can't use this porxy to get twint data I have no ideal Thanks for help