猫史档案馆


【求助】Python爬虫发帖为啥失败?

用户:oWuGi7s6oWuGi7s6查看:18 回复:8 评论:18 创建时间:2023-01-11T18:52:28


代码:

import requeste

 

a = requests.post(' https://api.codemao.cn/web/forums/boards/7/posts',data={'titie': 'Python发帖测试', 'content': '如题如题如题,测完就删',},headers='cookie': '我的cookie')   print(a)     报错信息:

{"error_code":"Media-Type-Unsupported@Common","error_message":"客户端请求错误,不被支持的参数类型","log_uuid":"ff9babe1-39a3-4773-ac50-4b98071563b0","domain":[]}

进程已结束,退出代码0

 

???


回复

上一页1 页 / 共 1下一页
oWuGi7s6oWuGi7s6

ddd()))

 

点赞0


评论


Bamshine竹潇Bamshine竹潇

发下cookie,我帮你😏

点赞1


评论


oWuGi7s6oWuGi7s6

dddd()))

 

点赞0


评论


oWuGi7s6oWuGi7s6

ddd

 

点赞0


评论


oWuGi7s6oWuGi7s6

ddd()))

 

点赞0


评论


judgment07judgment07

代码写的真好,下次不要再写了(doge)

点赞0


评论


oWuGi7s6oWuGi7s6

ddd()))

 

点赞0


评论


一个STUB用户_6923702一个STUB用户_6923702

你要在那个文本串里写自己的cookie……

不然你不登陆你怎么发帖……

点赞0


评论