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)

 

分类:

技术点:

相关文章:

  • 2021-08-16
  • 2022-02-12
  • 2021-09-07
  • 2021-08-28
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-07
  • 2021-10-03
  • 2022-12-23
  • 2021-10-31
  • 2021-12-04
  • 2021-04-26
  • 2021-08-06
相关资源
相似解决方案