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 #202

Open
mominurr opened this issue Oct 10, 2023 · 0 comments
Open

Comments

@mominurr
Copy link

Code :
from twitter_scraper import Profile
profile = Profile("bugraisguzar")
print(profile.to_dict())

give me this error:

Traceback (most recent call last):
File "D:\Testing_all_project\twitter-scraper.py", line 2, in
profile = Profile("bugraisguzar")
File "D:\Testing_all_project\env\lib\site-packages\twitter_scraper\modules\profile.py", line 41, in init
self.__parse_profile(page)
File "D:\Testing_all_project\env\lib\site-packages\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

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

1 participant