Closed leon1995 closed 3 years ago
See this issue:https://github.com/taspinar/twitterscraper/issues/296
Indeed, this can be fixed by modifying the header dictionary in query.py from HEADER = {'User-Agent': random.choice(HEADERS_LIST)} to HEADER = {'User-Agent': random.choice(HEADERS_LIST), 'X-Requested-With': 'XMLHttpRequest'} that should fix the issue.
This fixed my issue as well, atleast on windows 10.
See this issue:#296
Indeed, this can be fixed by modifying the header dictionary in query.py from HEADER = {'User-Agent': random.choice(HEADERS_LIST)} to HEADER = {'User-Agent': random.choice(HEADERS_LIST), 'X-Requested-With': 'XMLHttpRequest'} that should fix the issue.
this fixed my issue.. thanks..
this worked for me too....should it be changed in the git repo here?
This fix has been merge to twitterscraper and available in version 1.5.0 on pypi as well.
When I try to get tweets the following happens:
Hope that someone can help me :)