bisguzar / twitter-scraper

Scrape the Twitter Frontend API without authentication.
MIT License
3.88k stars 600 forks source link

Add Headers for Trends Request, #108 #109

Closed bisguzar closed 4 years ago

zachadams16 commented 4 years ago

looks good

Sue-Fwl commented 4 years ago

Greetings,

I'm getting an error on -> 'module_html' when calling 'get_trends()'

`Traceback (most recent call last):

in Trending = get_trends()

File "site-packages\twitter_scraper\modules\trends.py", line 17, in get_trends html = html.json()["module_html"]

KeyError: 'module_html'`

bisguzar commented 4 years ago

Hi @Sue-Fwl , you are using the latest version, right? Please be sure. Thanks

Sue-Fwl commented 4 years ago

Appreciate your reply, Sure did, and I just copied the trends.py file from the repository and ran the command again [same error {KeyError: 'module_html'} ]

p.s other modules are working great for me -profile and tweets-

bisguzar commented 4 years ago

Oh, sounds bad. Might be you are a victim of twitter's A/B tests or something else. Can you create an issue for it? I'll tag it as "help wanted".

Sue-Fwl commented 4 years ago

I'm not sure~ Will do then.