浏览器请求没问题,但是用代码请求时就会报错!
Checking if the site connection is secure
XXXXX needs to review the security of your connection before proceeding.
解决办法
pip install cloudscraper
import cloudscraper
scraper = cloudscraper.create_scraper()
resp = scraper.get('目标网站').text
和requests 请求一样