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