request模块

# -*- coding: utf-8 -*-
"""
Created on Tue Mar 30 15:28:45 2021

@author: zhang
"""
import requests
proxy = 'IP代理地址'
proxies ={'http':'http://'+proxy,'https':'https://'+proxy}
url ='网址'
res = requests.get(url, headers=dict,poxeies=proxies)

你可能感兴趣的:(request模块)