-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Error json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) (again...) #1335
Comments
same issue here |
I tried to change to the user agent list but that doesn't fix it, it may be because of API Token? |
I just realized that a TokenExpiryException is raised. |
I think same with you it about the Token in _url variable |
https://developer.twitter.com/en/docs/twitter-api/rate-limits |
Any solutions? |
I was checking apparently twitter doesn't let you extract information, the RT record is not available unless you log in |
Not sure if it is helpful in diagnosing the root cause, but when using twint via windows cmd line, error only occurs when the Environment Details |
when you put this --timeline clause, it scrapes the user's own tweets plus the RTs they gave, since the RTs can't be extracted anymore, it gives the error |
@panichmaxim When i switched to twint.run.Search(c) instead of twint.run.Profile(c) it started working again. |
twint.run.Search(c) it works but you don't have the same data that you had with twint.run.Profile(c), if you look closely it only brings the tweets of that user twint.run.Search(c) not the RTs that he gave to other Users |
In my environment, function Lookup is working correctly, but Profile is not. So I use Lookup instead of Profile to get user infomation. Hope to help you. |
This commit doesn't completely fix the problem, but `twint.Profile` works
I wrote the code to solve the issue. minamotorin/twint In this code, This problem was caused by Twitter's changes. |
After some time, I've tested your code @minamotorin, it works, many thanks for your work (minamotorin/twint). For others, as said this issue is not totally fixed, but it solves the original problem for now. |
JSONDecodeError
Initial Check
pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint
;Command Ran
I execute a simple test to collect user's tweets and profile :
Description of Issue
After several days using twint without error, this error came up yesterday, I checked the existing issues (mentionned up there ^^) so it's might also be related to user-agent but I don't understand how user-agent can block the request.
Below my traceback:
I've checked the user-agent used and it changed as it is supposed to since #427 #428 random use.
Are we supposed to change the
user_agent_list
inget.py
once in while ?I remain at your disposal if any information is missing.
Thanks for helping.
Have a nice day 🙂
Environment Details
I'm running the script on Windows 10 Pro, in a VSCode bash terminal.
The text was updated successfully, but these errors were encountered: