增加下载数据到json

This commit is contained in:
编码猿
2025-07-23 23:52:30 +08:00
parent 9f998fc3e7
commit fe9c4137d5
10 changed files with 460 additions and 103 deletions

View File

@@ -21,13 +21,31 @@ app.use((req, res, next) => {
})
app.get('/', async (req, res) => {
let { page } = req.query
let data = await request.post(config.visionProfileLikePhotoList, {
page: "profile",
pcursor: "空"
pcursor: page
});
res.json(data)
})
app.listen(3000, () => {
console.log(`http://127.0.0.1:3000`)
app.get('/tj', async (req, res) => {
let { feeds } = await request.post(config.visionNewRecoFeed, {
dailyFirstPage: false
});
let result = []
feeds.forEach(v => {
result.push({
video_introduce: v.photo.caption,
video_url: v.photo.photoH265Url
})
});
res.json(result)
})
app.listen(3030, () => {
console.log(`http://127.0.0.1:3030`)
})