我正在尝试打开网站的新标签。如何配置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)