0
アムをこする、私はユーザー名とパスワードを与えているが、まだそれは私に、以下のエラーを投げています。ここでスパイダー - ウェブサイトからデータをこすりしようとしている
"URLError: urlopen error [Errno 11004] getaddrinfo failed>"
は私のコードです:
import urllib.request as req
proxy = req.ProxyHandler({'http':r'http://abca:[email protected]@:192.168.115.116:8080'})
auth = req.HTTPBasicAuthHandler()
opener = req.build_opener(proxy, auth, req.HTTPHandler)
req.install_opener(opener)
conn = req.urlopen('http://www.google.com')
return_str = conn.read()
おかげ&よろしく、 サンジェイ