-
Notifications
You must be signed in to change notification settings - Fork 599
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
json.decoder.JSONDecodeError: in get_tweets() #201
Comments
Were you able to solve this? |
hey unfortunately not - ended up building our own scraper instead. still hoping someone figures out a solution though what about you? |
No I havent, are you able to share your scraper? |
I have this issue still as well. |
Did anyone find a work around? |
@jmoraes7 link? |
same here |
I'm trying to run the following code example from the documentation:
`Python 3.7.3 (default, Mar 26 2019, 21:43:19)
[GCC 8.2.1 20181127] on linux
Type "help", "copyright", "credits" or "license" for more information.
but end up hitting this error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/username/miniconda3/lib/python3.9/site-packages/twitter_scraper/modules/tweets.py", line 170, in get_tweets yield from gen_tweets(pages) File "/Users/username/miniconda3/lib/python3.9/site-packages/twitter_scraper/modules/tweets.py", line 37, in gen_tweets html=r.json()["items_html"], url="bunk", default_encoding="utf-8" File "/Users/username/miniconda3/lib/python3.9/site-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Anyone know why this is happening? Is this project still being maintained?
The text was updated successfully, but these errors were encountered: