python - 使用python请求是否可以使用请求标头绕过adblock?
问题描述
我从使用requests.get()
默认请求参数的网站收到关闭广告屏蔽消息。
谁能解释是否有任何方法可以在请求标头中指定 adblock 规则?例如,添加https://adblockplus.org/filter-cheatsheet上定义的网站例外,例如: requests.get(url, headers={...adblock_rules = "@@||example.com^"...}
?
解决方案
推荐阅读
- amazon-web-services - 如何将 AWS Crawler 配置导出为 JSON(或类似)并签入源代码控制?
- python - JSON将重复条目转换为数组,但恢复原始顺序
- laravel - Laravel Queue - 如何在不使用 cronjob 的情况下按顺序运行队列
- sql - 查询所有需要从历史表中生成最新记录的记录
- swift - 像 CIColorMatrix 一样,使用 vImageMatrixMultiply_ARGB8888 将颜色矩阵过滤器应用于 UIImage
- r - model.frame.default 中的错误(...,drop.unused.levels = TRUE,:可变长度不同(为“(权重)”找到)
- c - 指向 C 函数中的指针的指针
- c - C 程序 fork() 结果重复
- sql - 获取新用户和回访用户细分(新付款人与回访付款人)
- android - Azure B2C Android 登录 AppAuth 演示 - 页面刷新而不是登录并且不重定向到应用程序