CEF Python 代理验证
CEF Python Proxy Authentication
有没有办法在 CEF 中添加代理身份验证Python?
我能找到的最佳答案是 here。问题是代码是用 C# 编写的,我无法将其转换为 Python。
CEF Python 目前不支持引用的 C# 示例的所有功能。
您可以使用带有 "proxy-server" switch, but this can be set only once during initialization when calling cef.Initialize. Chromium preferences (the SetPreference method in C#) which allow for setting options during runtime are not supported yet, this is to be implemented via Issue #244 的命令行开关设置代理。这个问题被标记为 "next-release2",因此应该在下一个版本中实现(通常是几个月)。
CEF Python 支持 RequestHandler。GetAuthCredentials callback. If you need GUI dialog for entering username/password then you need to implement this in your app using GTK/Qt or whatever GUI framework you use. There is no default implementation of auth credentials dialog in upstream CEF, applications need to implement such control on their own. On a side note there was a default implementation for auth dialogs on Windows in CEF Python 1 - but that's a very old version, code is available here。
有没有办法在 CEF 中添加代理身份验证Python?
我能找到的最佳答案是 here。问题是代码是用 C# 编写的,我无法将其转换为 Python。
CEF Python 目前不支持引用的 C# 示例的所有功能。
您可以使用带有 "proxy-server" switch, but this can be set only once during initialization when calling cef.Initialize. Chromium preferences (the SetPreference method in C#) which allow for setting options during runtime are not supported yet, this is to be implemented via Issue #244 的命令行开关设置代理。这个问题被标记为 "next-release2",因此应该在下一个版本中实现(通常是几个月)。
CEF Python 支持 RequestHandler。GetAuthCredentials callback. If you need GUI dialog for entering username/password then you need to implement this in your app using GTK/Qt or whatever GUI framework you use. There is no default implementation of auth credentials dialog in upstream CEF, applications need to implement such control on their own. On a side note there was a default implementation for auth dialogs on Windows in CEF Python 1 - but that's a very old version, code is available here。