随笔分类 -  python_requests

摘要:在学习过程中,遇到一个小说网站:h@t@t@p@s@:@/@/@w@w@w@.@i@b@i@q@u@g@e@s@.@c@o@m@/@1@/@1@7@1@0@/@1@2@9@8@2@6@6@.@h@t@m@l@ get后,print text内容,发现中间小说内容部分没了,而这部分内容正是想要获取的, 阅读全文
posted @ 2023-07-18 15:54 sbsdnyn 阅读(149) 评论(0) 推荐(0) 编辑
摘要:编码看网页源代码,搜索charset=。 resp.encoding = 'utf-8' resp.encoding = 'gbk' 关于内容三种方法: 一、etree。https://www.cnblogs.com/sbsdnyn/p/17537533.html 二、文本 .split()。进行来 阅读全文
posted @ 2023-07-07 16:45 sbsdnyn 阅读(119) 评论(0) 推荐(0) 编辑
摘要:import requests url = 'http://httpbin.org/post' d = { "type": "1", "name": "", "area": "", "city": "不限", "city1": " ", "city2": " ", "xmxz": "0", " 阅读全文
posted @ 2023-07-07 15:52 sbsdnyn 阅读(17) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示