Python3 本地请求https
Python3+PyCharm 本地请求https
需要注意全局代理设置
import requests
from urllib.request import ProxyHandler, build_opener
proxies = {
“http”: “http://127.0.0.1:1080”,
“https”: “https://127.0.0.1:1080”, }
proxy_handler = ProxyHandler(proxies)
opener = build_opener(proxy_h
原创
2021-03-31 10:53:54 ·
306 阅读 ·
0 评论