我想知道是否以及如何使用update函数更改代理,我知道这个函数,但我不知道要更改代理Ip:加载配置文件的端口的属性/格式
发布于 2022-08-23 14:15:38
下面是一个代码片段,展示如何在Kameleo中更新重新加载的虚拟浏览器配置文件上的代理设置
profile = client.load_profile(body=LoadProfileRequest(path=path))
profile.proxy = ProxyConnectionTypeServerMultiLevelChoice(value='http', extra=Server(host='host', port=1111, id='user', secret='password'))
profile = client.update_profile(profile.id, body=profile)请注意,您需要导入Server和ProxyConnectionTypeServerMultiLevelChoice
from kameleo.local_api_client.models.proxy_connection_type_server_multi_level_choice_py3 import ProxyConnectionTypeServerMultiLevelChoice
from kameleo.local_api_client.models.server_py3 import Serverhttps://stackoverflow.com/questions/73460351
复制相似问题