bisguzar / twitter-scraper

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

UnboundLocalError: local variable 'html' referenced before assignment #173

Open sscanavini opened 4 years ago

sscanavini commented 4 years ago

When I try to:

profile = Profile('bgpstream')

I get this error:

Traceback (most recent call last): File "", line 1, in File "/tools/tmp/twitter-scraper/twitter_scraper/modules/profile.py", line 41, in init self.parse_profile(page) File "/tools/tmp/twitter-scraper/twitter_scraper/modules/profile.py", line 65, in parse_profile self.location = html.find(".ProfileHeaderCard-locationText")[0].text UnboundLocalError: local variable 'html' referenced before assignment

yimingStar commented 4 years ago

@sscanavini please check #166 It is the same issue, due to an empty response.

r4cs commented 3 years ago

same here

Modem-i4 commented 3 years ago

Same

TrevorBagels commented 3 years ago

I'm also getting this, anyone know any workarounds?