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

How to use proxy ? #29

Open
henzycuong1 opened this issue Jul 3, 2024 · 0 comments
Open

How to use proxy ? #29

henzycuong1 opened this issue Jul 3, 2024 · 0 comments

Comments

@henzycuong1
Copy link

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

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