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

Is there a way to use the scraper with proxies ?

Open chaim6888 opened this issue 3 years ago • 7 comments

Hi I am trying to use the scraper with proxies but am not sure where to pass them.

Any ideas?

Thanks

chaim6888 avatar Feb 12 '22 08:02 chaim6888

You can use:

from facebook_scraper import set_proxy
set_proxy("http://localhost:8080")

But I generally wouldn't recommend it, as public proxies raise red flags to Facebook servers

neon-ninja avatar Feb 12 '22 18:02 neon-ninja

Thanks How many requests can you make without proxy before facebook starts blocking you?

chaim6888 avatar Feb 12 '22 18:02 chaim6888

It depends if you're logged in or not

neon-ninja avatar Feb 12 '22 21:02 neon-ninja

How many if you are logged in?

chaim6888 avatar Feb 13 '22 15:02 chaim6888

It depends how fast you make them

neon-ninja avatar Feb 13 '22 18:02 neon-ninja

Does set_proxy accept username and password? if the proxy server need those?

mmosleh avatar Apr 16 '22 18:04 mmosleh

Try bake the username and password into the URL. Like, http://user:pass@url

neon-ninja avatar Apr 16 '22 22:04 neon-ninja