cloudscraper(Released: Mar 15, 2022)

PyPi文档

1
2
3
4
5
import cloudscraper

url = "https://www.curseforge.com/"
scraper = cloudscraper.create_scraper(interpreter="nodejs")
print(scraper.get(url).text)

cloudflare-scrape(23 Feb 2020)

版本太老,弃用 https://github.com/Anorov/cloudflare-scrape