Skip to content

How to use proxy ? #29

Description

@henzycuong1

Hi, I wanna scrap a lot of username ( The purpose is just to check the account is banned ) so my code is:

def is_banned(username: str) -> bool:
         x = TwitterOpenapiPython().get_guest_client()
        try:
             x.get_user_api().get_user_by_screen_name(username)
             return False
         except:
             return True

But if I scrap greater 500 accounts, I got a lot of error "Key Error" (ct0, guest_id) from TwitterOpenapiPython().get_guest_client()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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