from twitter_scraper import Profile
profile = Profile("dgnsrekt")
print(profile.name)
print(profile.user_id)
Output:
Traceback (most recent call last):
File "main.py", line 3, in <module>
profile = Profile("dgnsrekt")
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/twitter_scraper/modules/profile.py", line 41, in __init__
self.__parse_profile(page)
File "/opt/virtualenvs/python3/lib/python3.8/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
Profile class appears to be broken.
Ran the following code.
Output: