drawrowfly / tiktok-scraper

TikTok Scraper. Download video posts, collect user/trend/hashtag/music feed metadata, sign URL and etc.
4.44k stars 805 forks source link

Can not get no water mark video #733

Closed trandinhquy97 closed 2 years ago

trandinhquy97 commented 2 years ago

Describe the bug I create a simple Nodejs app and it cannot get no-watermark video.

const TikTokScraper = require('tiktok-scraper');
const options = {
    headers: {
        "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36",
        "referer": "https://www.tiktok.com/",
        "cookie": "tt_webid_v2=689854141086886123"
    },
    noWaterMark: true,
    hdVideo: true
};
(async () => {
    try {
        const videoMeta = await TikTokScraper.getVideoMeta('https://www.tiktok.com/@nelyrall/video/7065342945507020034?is_copy_url=1&is_from_webapp=v1', options);
        console.log(videoMeta);
    } catch (error) {
        console.log(error);
    }
})();

To Reproduce OS: windows 11, NodeJs Version: v14.18.0, version: 1.4.36, Just run the code above.

Screenshots image