How to rotate proxies on a Python requests

后端 未结 2 963
予麋鹿
予麋鹿 2021-02-06 16:20

I\'m trying to do some scraping, but I get blocked every 4 requests. I have tried to change proxies but the error is the same. What should I do to change it properly?

He

2条回答
  •  情书的邮戳
    2021-02-06 16:39

    The problem with using free proxies from sites like this is

    1. websites know about these and may block just because you're using one of them

    2. you don't know that other people haven't gotten them blacklisted by doing bad things with them

    3. the site is likely using some form of other identifier to track you across proxies based on other characteristics (device fingerprinting, proxy-piercing, etc)

    Unfortunately, there's not a lot you can do other than be more sophisticated (distribute across multiple devices, use VPN/TOR, etc) and risk your IP being blocked for attempting DDOS-like traffic or, preferably, see if the site has an API for access

提交回复
热议问题