-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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()
Metadata
Metadata
Assignees
Labels
No labels