zhangqing979797

 

 

import requests

proxy=\'36.56.206.127:20945\'  #本地代理
#proxy=\'username:password@123.58.10.36:8080\'
proxies={
    \'http\':\'http://\'+proxy,
    \'https\':\'https://\'+proxy
}
try:
    response=requests.get(\'https://\',proxies=proxies)
    print(response.text)
except requests.exceptions.ConnectionError as e:
    print(\'错误:\',e.args)

 

分类:

技术点:

相关文章: