Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants