-
Notifications
You must be signed in to change notification settings - Fork 598
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
JSONDecodeError + 400 error when using get_tweets() #140
Comments
same issue, returns null html |
Same issue, returns 400 |
Same Issue here |
Same issues too get_trends() and get_tweets() |
https://twitter.com/i/search/timeline doesn't work either |
Twitter just updated something. We need debug it entirely. But I don't have any time in mey short-term. All informations are welcome |
My hunch is this is the same issue raised in #132. Would updating the "headers" called in tweets.py solve the issue? |
I don't think so, just modified headers a bit but nothing changed. As I said, I'm not able to debug this issue in short-term because of my busy schedule. Please change headers as you wish too, modify source and tell us what happened. @EssbieWGT |
Maybe is for this "It seems that Twitter has had it enough! The company is shutting down its original site legacy theme version on the 1st of June 2020, as reported by BleepingComputer. Twitter has issued a warning to all the users who have been using user-agent switching hacks and unsupported browsers to enable the legacy theme." |
started working now |
doesn't work for me |
I'm so confused. Just tried with version 0.4.1 and it seems working. Don't know how yet. But need more information. Look like twitter trying something new. |
Spent some time trying to find the problem over the weekend, and couldn't nail it down. Ended up creating a new virtual environment for my script and now everything works fine. |
So weird, thanks for your efforts @EssbieWGT . I tried inside my old environment and same result, working... I'm not going to close this issue for a while. We need to deep-into search. |
Is problem back or is it just me? |
Back to 400 bad request. |
Does not work |
NOT work too |
Kinda lost at what can be done here. Browsing through devtools in Firefox only this brings attention, since it returns json with tweets: Another way is to use Pyppeteer with
But that would be html code with (encrypted?) class names that's a pain in the ass to sort out. Any ideas? |
@brachna That link doesn't even work in browser for me |
Seems like it has to do with a change in the Twitter API (v2), I can see that right now you cannot view tweets without logging in. |
Ok, so gallery-dl has twitter extractor that uses twitter api (v2). It does work. |
Confirming that this error is still an issue, same code and traceback as OP comment. |
Any updates about this issue? |
Code used:
Traceback:
The response from Twitter:
Perhaps this is related to the redesign mentioned in #132?
The text was updated successfully, but these errors were encountered: