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

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

Open
@sscanavini

Description

@sscanavini

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions