用户:
11111111111111112查看:26 回复:12 评论:26 创建时间:2023-11-05T16:59:39
1111111有没大佬会爬虫111111
五梦樱川#爬你的头像 importrequests; o=requests.get('https://cdn-community.codemao.cn/47/community/d2ViXzEwMDFfMTk3NDgxNjA5OF8xOTc0ODE2MDk4XzE2NzUzOTUzNzE5MDlfYzE1NGMxNTI.png') print('爬头像成功') withopen('1.png','wb')asf: f.write(o.content)
点赞0
评论
owugi7s6awaimport requests
a = {
'请求信息(字典)':'xxx'
}
url = '请求链接'
#get请求
response = requests.post(
url=url,
headers=a
)
#post请求
response = requests.get(
url=url,
headers=a
)
点赞0
评论