trevorhobenshield / twitter-api-client

Implementation of X/Twitter v1, v2, and GraphQL APIs
https://pypi.org/project/twitter-api-client
MIT License
1.56k stars 207 forks source link

Scraper: Cannot parse JSON response 'NoneType' object has no attribute 'json' #206

Closed amttar closed 5 months ago

amttar commented 5 months ago

Whenever I try to use the scraper, I keep getting None responses with the error below

>>> tweets_details = scraper.tweets_details([1770164518758633590], count=100, limit=100)
TweetDetail: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:01<00:00,  1.82s/it]
Cannot parse JSON response 'NoneType' object has no attribute 'json'

Is there a problem with the Scraper module?

trevorhobenshield commented 5 months ago

This is a common issue, usually this means your cookies have expired, a pending security challenge, rate limit, or an account block.

You can log-in using the browser and see if everything is working, then copy your cookies and run your script again.