How to bypass cloudflare bot/ddos protection in Scrapy?

后端 未结 3 1008
清歌不尽
清歌不尽 2020-12-13 13:54

I used to scrape e-commerce webpage occasionally to get product prices information. I have not used the scraper built using Scrapy in a while and yesterday was tryi

3条回答
  •  感动是毒
    2020-12-13 14:42

    Obviously the best way to do this would be to whitelist your IP in CloudFlare; if this isn't suitable let me recommend the cloudflare-scrape library. You can use this to get the cookie token, then provide this cookie token in your Scrapy request back to the server.

提交回复
热议问题