|

100精币
变量名 | 类 型 | 静态 | 数组 | 备 注 | 局_网址 | 文本型 | | | 局_方式 | 整数型 | | | 局_提交数据 | 文本型 | | | 局_提交cookie | 文本型 | | | 局_提交协议头 | 文本型 | | | 局_结果 | 字节集 | | |
局_网址 = "https://www.seaart.me/api/v1/artwork/list" 局_方式 = 1 order_by: "hot" page: 1 page_size: 60 tag_type: 2 tags: ["science_fiction" ]type: "community" 局_提交数据 = "keyword: ”+#引号+ “”+#引号+ “” + #换行符 + “order_by: ”+#引号+ “hot”+#引号+ “” + #换行符 + “page: 1” + #换行符 + “page_size: 60” + #换行符 + “tag_type: 2” + #换行符 + “tags: [”+#引号+ “science_fiction”+#引号+ “]” + #换行符 + “type: ”+#引号+ “community”+#引号+ “" 局_提交cookie = "_ga=GA1.1.817003456.1695605550; _gcl_au=1.1.729318232.1695605546.786342461.1695607227.1695607336; Hm_lvt_c257ead5222387be5a34886f1cd867ad=1695656813; Hm_lpvt_c257ead5222387be5a34886f1cd867ad=1695656813; _ga_4X5PK5P053=GS1.1.1695656514.4.1.1695656814.0.0.0" 局_提交协议头 = ":authority:www.seaart.me” + #换行符 + “:method:POST” + #换行符 + “:path:/api/v1/artwork/list” + #换行符 + “:scheme:https” + #换行符 + “Accept:application/json, text/plain, */*” + #换行符 + “Accept-Encoding:gzip, deflate, br” + #换行符 + “Accept-Language:zh-CN” + #换行符 + “Content-Length:114” + #换行符 + “Content-Type:application/json” + #换行符 + “Cookie:_ga=GA1.1.817003456.1695605550; _gcl_au=1.1.729318232.1695605546.786342461.1695607227.1695607336; _ga_4X5PK5P053=GS1.1.1695656514.4.0.1695656514.0.0.0” + #换行符 + “Origin:https://www.seaart.me” + #换行符 + “Referer:https://www.seaart.me/explore?tagId=science_fiction” + #换行符 + “Sec-Ch-Ua:”+#引号+ “Chromium”+#引号+ “;v=”+#引号+ “116”+#引号+ “, ”+#引号+ “Not)A;Brand”+#引号+ “;v=”+#引号+ “24”+#引号+ “, ”+#引号+ “Google Chrome”+#引号+ “;v=”+#引号+ “116”+#引号+ “” + #换行符 + “Sec-Ch-Ua-Mobile:?0” + #换行符 + “Sec-Ch-Ua-Platform:”+#引号+ “Windows”+#引号+ “” + #换行符 + “Sec-Fetch-Dest:empty” + #换行符 + “Sec-Fetch-Mode:cors” + #换行符 + “Sec-Fetch-Site:same-origin” + #换行符 + “Token:FaodKIBQ” + #换行符 + “User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36” + #换行符 + “X-App-Id:web_global_seaart” + #换行符 + “X-Device-Id:a0b16356-fdc9-4002-b3e3-c00db07ef52f” + #换行符 + “X-Platform:web" 局_结果 = 网页_访问_对象 (局_网址, 局_方式, 局_提交数据, 局_提交Cookie, , 局_提交协议头, , , , , , , , , , , ) 返回 (局_结果)
为什么我抓取的信息是乱码?我想抓取里面的图片地址。求各位大佬帮帮忙
|
最佳答案
查看完整内容
接口返回是json的可以用json处理类来读数据源码是例程,使用了精易模块
评分
-
查看全部评分
|