Update
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c3fb40ea02
commit
6fc2b0726d
2
index.js
2
index.js
|
@ -17,7 +17,7 @@ app.get('/user/:user', async (req, res) => {
|
||||||
"home_page_url": `https://tiktok.com/@${user}`,
|
"home_page_url": `https://tiktok.com/@${user}`,
|
||||||
"items": []
|
"items": []
|
||||||
}
|
}
|
||||||
let posts = await scraper.user(user, { number: 5, randomUa: true, noWaterMark: false })
|
let posts = await scraper.user(user, { number: 5, noWaterMark: false })
|
||||||
for (const post of posts.collector) {
|
for (const post of posts.collector) {
|
||||||
feed.items.push({
|
feed.items.push({
|
||||||
"id": post.id,
|
"id": post.id,
|
||||||
|
|
|
@ -15,6 +15,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"he": "^1.2.0",
|
"he": "^1.2.0",
|
||||||
"tiktok-scraper": "^1.2.4"
|
"tiktok-scraper": "^1.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue