Python Proxy Error With Requests Library

前端 未结 3 2079
我寻月下人不归
我寻月下人不归 2020-12-31 17:52

I am trying to access the web via a proxy server in Python. I am using the requests library and I am having an issue with authenticating my proxy as the proxy I am using req

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 18:45

    You can use urllib library for this.

    from urllib import request
    request.urlopen("your URL", proxies=request.getproxies())
    

提交回复
热议问题