jlelse
/
TikTokJsonFeed
Archived
1
Fork 0

Return video without watermark
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jan-Lukas Else 2020-06-02 13:36:55 +02:00
parent 4aaf24f3b3
commit f6a890170c
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ app.get('/user/:user', async (req, res) => {
"home_page_url": `https://tiktok.com/@${user}`,
"items": []
}
let posts = await scraper.user(user, { number: 10 })
let posts = await scraper.user(user, { number: 10, noWaterMark: true })
for (const post of posts.collector) {
feed.items.push({
"id": post.id,
@ -25,7 +25,7 @@ app.get('/user/:user', async (req, res) => {
"date_published": new Date(parseInt(post.createTime, 10) * 1000),
"attachments": [
{
"url": post.videoUrl,
"url": post.videoUrlNoWaterMark,
"mime_type": "video/mp4"
}
]