简体   繁体   English

如何使用纯python和pywebkit配置代理设置

[英]How can I configure proxy settings using pure python with pywebkit

I came across this question while looking for an answer, but it uses ctypes to accomplish proxy configuration. 我在寻找答案时遇到了这个问题 ,但是它使用ctypes完成代理配置。 Is there a way to do it with pure python, or is ctypes the only way? 有没有办法用纯python做到这一点,还是ctypes是唯一方法?

There's a bug report on the upstream bug tracker that has a patch to add a set_proxy function to the webkit module. 上游错误跟踪器上有一个错误报告,该报告具有一个修补程序,用于向webkit模块添加set_proxy函数。

As of now, it's not present in a released version, but building from git should allow it to be used. 到目前为止,它尚未发布,但是从git构建应该可以使用它。

http://code.google.com/p/pywebkitgtk/issues/detail?id=53 http://code.google.com/p/pywebkitgtk/issues/detail?id=53

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何禁用pywebkit控制台消息? - How can I disable pywebkit console messages? 如何从 python 中的 selenium 将代理设置从默认配置为 Firefox (geckodriver) 上的“自动检测代理设置”? - How do I configure proxy settings from default to "auto-detect proxy settings" on Firefox (geckodriver) from selenium in python? 如何配置 Python 以使用与我的计算机相同的代理设置 - How do I configure Python to use the same proxy settings of my computer 如何使用 python 为远程 selenium webdrive 配置特殊代理设置? - How to configure special proxy settings for a remote selenium webdrive with python? 如何使用python在MacOS上设置代理设置 - How to set proxy settings on MacOS using python 为由cs封装在Python中的请求配置代理设置 - Configure proxy settings for requests encapsulated by cs in Python 如何使用纯python创建kubernetes yaml文件 - How can I create kubernetes yaml file using pure python 我如何在纯 Python 中沙盒 Python? - How can I sandbox Python in pure Python? 如何使用python获取系统代理设置(包括用户名和密码)? - How can I get the system proxy settings (including username and password) with python? 如何在GoDaddy上为我的Python Flask应用配置设置 - How do I configure settings for my Python Flask app on GoDaddy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM