如何通过Webbrowser库使用代理打开多个选项卡?

时间:2019-04-27 19:17:29

标签: python python-webbrowser

我正在尝试打开网站的新标签。如何配置Web浏览器库以通过代理多次访问页面?

# Some list of proxies
proxies = {
'http': 'http://91.211.245.12:3128',
}

url = 'http://google.com/'
proxy_support = urllib.request.ProxyHandler({'https': 'https://www.us-proxy.org:53281'})

for i in range(10):
    with urllib.request.urlopen(url) as response:
        webbrowser.open_new_tab(url)

0 个答案:

没有答案
相关问题