学习爬虫代理中,出现了如下问题
from urllib.error import URLError
from urllib.request import ProxyHandler,build_opener
proxy = '127.0.0.1:9743'
proxy_handler = ProxyHandler({
'http':'http://' + proxy,
'https':'https://'
学习爬虫代理中,出现了如下问题
from urllib.error import URLError
from urllib.request import ProxyHandler,build_opener
proxy = '127.0.0.1:9743'
proxy_handler = ProxyHandler({
'http':'http://' + proxy,
'https':'https://'