增加下载数据到json
This commit is contained in:
@@ -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`)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user