facebook-scraper icon indicating copy to clipboard operation
facebook-scraper copied to clipboard

how can i avoid to temporarily ban for get_profile?

Open ahsentekd opened this issue 2 years ago • 5 comments

Hi guys, I need help on get_profile function i have 2 different sleep on my code first one is time.sleep(randint(10, 18)) second one is time.sleep(60) . Well im still getting temporarily ban any suggesions?

ahsentekd avatar Mar 22 '22 23:03 ahsentekd

def check_login(username, password):
    return _scraper.login(username, password)

i always getting ban when i scarape 23. users profile so when iter came 20 im trying to loging with new account but still getting ban?

ahsentekd avatar Mar 23 '22 15:03 ahsentekd

Facebook makes this intentionally difficult to prevent the likes of Cambridge Analytica. You have to slow down even further. See https://github.com/kevinzg/facebook-scraper/issues/542 and https://github.com/kevinzg/facebook-scraper/issues/390

neon-ninja avatar Mar 30 '22 02:03 neon-ninja

Facing the same issue, what is the recommended sleep duration between scrapings? @neon-ninja

eyalgolan avatar Apr 02 '22 16:04 eyalgolan

Try one profile per minute

neon-ninja avatar Apr 02 '22 18:04 neon-ninja

I get banned when doing 1 profile every 5 minutes. Depends if you're getting all the friends/followers as well. Post what you're attempting, so we can all learn from our mistakes.. ;)

Vanguard-52236 avatar Apr 05 '22 21:04 Vanguard-52236