-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got 0 tweets today. Scraping correctly until yesterday! #336
Comments
yeah same problem |
My network blocks proxys, so even with requests.exceptions.ConnectionError: HTTPSConnectionPool(host='free-proxy-list.net', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002191C342A60>: Failed to establish a new connection: [WinError 10060] After setting up a VPN to bypass the proxy block, am now getting requests.exceptions.ConnectionError: ('Connection aborted.', OSError(0, 'Error')) |
i think they shut down non-javascipt render at twitter search web page |
If you need an urgent alternative twint seems to still be functional |
@dantechguy I was using Twint, and it stopped functioning as well today. |
Same problem |
I just changed the code to solve the problem. |
Maybe because they launched their new API: |
A legacy feed is still available by submitting the form in the noscript tag. The scraping will be different though. |
how is this done? |
Never mind my comment, I missed that it's already fixed in #337. |
Fix #337 did not completely fix the user search (keyword search seems good). Seems 1st return is JSON, but additional returns may not be. I added a "try: except:" after "try:" in line 107. It first trys response.text...than excepts: json_resp... |
I'm not following your fix for the user search. Can you share your code snippet for those lines? |
It did not fix the problem. I think the problem might be that the "INIT_URL_USER"/"RELOAD_URL_USER" have changed in query.py. The INIT_URL_USER seems to work OK, but says "has more items" is FALSE. |
the same problem got 0 tweets, maybe twitter launch their new API |
Did the changes in #337 fix the problem temporarily for you too? With it I started getting tweets returned, but after 5-10 minutes it starting returning 0 tweets again. |
The #337 fix works for KW searches. #337 does not fix User searches. The INIT_URL_USER returns up to 20 (?) of a user tweets. The return is JSON, and processed OK. The initial returns seems to always say "has more items" = False, which is not true in most cases. My guess is that the URLs for User search need to be updated like they were for KW search in #337. |
I don't think the #337 fix works fully for KW searches either. I am only doing KW searches and they work for a bit but after a while (it seems to be a different amount of time each time) 0 tweets is returned |
How I can implement solution # 337 without modifying the module ? |
Without difficulty I don't think you can |
@christiangfv, You can edit your py file /opt/anaconda3/lib/python3.8/site-packages/twitterscrapper and go into the query.py script and change the code and this will solve your issue. I troubleshooter for a few hours last night and this was the best way to do it. |
#337 worked a few times, and then I get this error message and only a fraction of my limit.
I also get errors for line 104 and 182 which doesn't resolve until a reinstall twitterscraper and the commit request. Can anyone help? I'm a first time coder. Very, very new to this stuff. |
@snmishra |
anyone has any idea how to overcome: key error items_html |
hey can uh get just user info? because it's giving syntax error |
As of August 21, 0 tweets is still an issue. Hopefully, this can be addressed soon. |
Seriously, nobody fixed this in like 3 months? Just had to stop sending a header in the initial request, I'll try to get a pullrequest out... |
@EklipZgit |
have you solved this issue? |
No description provided.
The text was updated successfully, but these errors were encountered: