1 Star 3 Fork 0

萧石/public_data

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mall_bilibili.py 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
undefined 提交于 2024-11-19 16:05 . 首次上传
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName :mall_bilibili.py
# @Time :2023/11/17
# @Author :CL
# @email :1037654919@qq.com
# 爬取 :https://mall.bilibili.com/#noReffer=true
import requests
import json
headers = {
"authority": "www.biligo.com",
"accept": "*/*",
"accept-language": "zh-CN,zh;q=0.9",
"cache-control": "no-cache",
"content-type": "application/json",
"origin": "https://www.biligo.com",
"pragma": "no-cache",
"referer": "https://www.biligo.com/list.html?noTitleBar=1&from=category_sb&category=1_107&scene=figure",
"sec-ch-ua": "\"Not.A/Brand\";v=\"8\", \"Chromium\";v=\"114\", \"Google Chrome\";v=\"114\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Linux\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
}
url = "https://www.biligo.com/mall/noah/search/category/v2"
data = {
"keyword": "",
"filters": "",
"priceFlow": "",
"priceCeil": "",
"sortType": "totalrank",
"sortOrder": "",
"pageIndex": 1,
"userId": "",
"state": "",
"scene": "figure",
"termQueries": [
{
"field": "category",
"values": [
"1_107"
]
}
],
"rangeQueries": [],
"extra": []
}
data = json.dumps(data, separators=(',', ':'))
response = requests.post(url, headers=headers, data=data)
print(response.text)
print(response)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/beihai_xiaoshi/public_data.git
git@gitee.com:beihai_xiaoshi/public_data.git
beihai_xiaoshi
public_data
public_data
master

搜索帮助