Skip to content
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

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

Open
sscanavini opened this issue Sep 18, 2020 · 4 comments
Open

Comments

@sscanavini
Copy link

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
Copy link

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

@r4cs
Copy link

r4cs commented Oct 26, 2020

same here

Repository owner deleted a comment from Altimis Dec 19, 2020
@Modem-i4
Copy link

Modem-i4 commented Jan 5, 2021

Same

@TrevorBagels
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants