首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何禁用selenium未检测驱动的编码?

如何禁用selenium未检测驱动的编码?
EN

Stack Overflow用户
提问于 2021-06-22 01:53:40
回答 1查看 151关注 0票数 0

我在将选项"disable_encoding“添加到seleniumwire未检测到的chromedriver时遇到问题。

我现在的代码如下:

代码语言:javascript
复制
# Configure chrome options
options = uc.ChromeOptions()
options.user_data_dir = "/Users/me/chrome"
options.add_argument('--no-first-run --no-service-autorun --password-store=basic')
options.disable_encoding=True # This is what I ca't enable
driver = uc.Chrome(options=options)

driver.get('https://accounts.google.com/servicelogin')
for request in driver.requests:
print(request.response.body)

有人知道如何配置"disable_encoding“来停止接收字节形式的http响应吗?

EN

回答 1

Stack Overflow用户

发布于 2021-08-29 19:59:38

您可以使用

代码语言:javascript
复制
options = { "disable_encoding":True}
driver = uc.Chrome(options=options)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68072593

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档