本文主要是介绍分享一些壁纸api(小鸟),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
分享一些壁纸api
搜索接口
import requestsurl = "https://wp.shanhutech.cn/intf/GetUpOrDownWallpaper"
querystring = {"type":"search","action":"","value":"原神","id":"2051093"}
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"}
response = requests.request("POST", url, headers=headers, params=querystring)
print(response.text)
最新
import requestsurl = "https://shcdn-wp.shanhutech.cn/intf/newestList"querystring = {"pageno":"1","count":"10"}headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"}response = requests.request("POST", url, headers=headers, params=querystring)print(response.text)
类别
参数说明,可以导入apipost中
[{"description": "","is_checked": 1,"key": "pageno","type": "Text","not_null": 1,"field_type": "String","value": "20"},{"description": "","is_checked": 1,"key": "count","type": "Text","not_null": 1,"field_type": "String","value": "20"},{"description": "","field_type": "String","is_checked": -1,"key": "tag","value": "清纯","not_null": 1,"type": "Text"},{"description": "4K专区 ","is_checked": -1,"key": "cids","type": "Text","not_null": 1,"field_type": "String","value": "36"},{"description": "美女模特","field_type": "String","is_checked": -1,"key": "cids","value": "6","not_null": 1,"type": "Text"},{"description": "爱情","field_type": "String","is_checked": -1,"key": "cids","value": "30","not_null": 1,"type": "Text"},{"description": "风景","field_type": "String","is_checked": -1,"key": "cids","value": "9","not_null": 1,"type": "Text"},{"description": "小清新","field_type": "String","is_checked": -1,"key": "cids","value": "15","not_null": 1,"type": "Text"},{"description": "动漫","field_type": "String","is_checked": 1,"key": "cids","value": "26","not_null": 1,"type": "Text"},{"description": "明星","field_type": "String","is_checked": -1,"key": "cids","value": "11","not_null": 1,"type": "Text"},{"description": "萌宠","field_type": "String","is_checked": -1,"key": "cids","value": "14","not_null": 1,"type": "Text"},{"description": "游戏","field_type": "String","is_checked": -1,"key": "cids","value": "5","not_null": 1,"type": "Text"},{"description": "汽车","field_type": "String","is_checked": -1,"key": "cids","value": "12","not_null": 1,"type": "Text"},{"description": "炫酷时尚","field_type": "String","is_checked": -1,"key": "cids","value": "10","not_null": 1,"type": "Text"},{"description": "日历壁纸","field_type": "String","is_checked": -1,"key": "cids","value": "29","not_null": 1,"type": "Text"},{"description": "影视剧照","field_type": "String","is_checked": -1,"key": "cids","value": "7","not_null": 1,"type": "Text"},{"description": "节日美图","field_type": "String","is_checked": -1,"key": "cids","value": "13","not_null": 1,"type": "Text"},{"description": "军事天地","field_type": "String","is_checked": -1,"key": "cids","value": "22","not_null": 1,"type": "Text"},{"description": "劲爆体育","field_type": "String","is_checked": -1,"key": "cids","value": "16","not_null": 1,"type": "Text"},{"description": "BABY秀","field_type": "String","is_checked": -1,"key": "cids","value": "18","not_null": 1,"type": "Text"},{"description": "文字控","field_type": "String","is_checked": -1,"key": "cids","value": "35","not_null": 1,"type": "Text"}
]
请求示例
import requestsurl = "https://wp.shanhutech.cn/intf/GetListByCategory"querystring = {"pageno":"20","count":"20","cids":"26"}headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"}response = requests.request("GET", url, headers=headers, params=querystring)print(response.text)
壁纸详情
import requestsurl = "https://wp.shanhutech.cn/intf/GetUpOrDownWallpaper"querystring = {"type":"newest","action":"","value":"","id":"2062166"} # id: 壁纸idheaders = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"}response = requests.request("GET", url, headers=headers, params=querystring)print(response.text)
这篇关于分享一些壁纸api(小鸟)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!