From f6a890170c5a54a26c4fea31d30643238f2486ad Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Tue, 2 Jun 2020 13:36:55 +0200 Subject: [PATCH] Return video without watermark --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1d43e35..b7841ce 100644 --- a/index.js +++ b/index.js @@ -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" } ]