首页 > 解决方案 > 使用python请求是否可以使用请求标头绕过adblock?

问题描述

我从使用requests.get()默认请求参数的网站收到关闭广告屏蔽消息。

谁能解释是否有任何方法可以在请求标头中指定 adblock 规则?例如,添加https://adblockplus.org/filter-cheatsheet上定义的网站例外,例如: requests.get(url, headers={...adblock_rules = "@@||example.com^"...}

标签: pythonweb-scrapingpython-requestsadblock

解决方案


推荐阅读