This is a simple library in Node Js and Deno to download videos from social media websites. It supports TikTok, Twitter, Youtube, and SnapChat. if want any other social media website, please open an issue.
npm install social_media_downloader
const dl = require("social_media_downloader");
let link = "https://www.tiktok.com/@billieeilish/video/7014570556607433990"; // here put the link
(
async () => {
let result = await dl.tiktok(link); // The result is a json
console.log(result);
}
)();
let link = "https://twitter.com/AJArabic/status/1476130879437037569"; // here put the link
(
async () => {
let result = await dl.twitter(link); // The result is a json
console.log(result);
}
)();
let link = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"; // here put the link
(
async () => {
let result = await dl.youtube(link); // The result is a json
console.log(result);
}
)();
let username = "hatanbado"; // here put the username
(
async () => {
const data = await dl.snapchat(username); // The result is a json
console.log(data);
}
)();
import * as dl from 'https://deno.land/x/social_media_downloader/mod.ts';
const result = await dl.tiktok("https://www.tiktok.com/@billieeilish/video/7014570556607433990");
console.log(result);
const result = await dl.twitter('https://twitter.com/AJArabic/status/1476130879437037569');
console.log(result);
const result = await dl.youtube('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
console.log(result);
const result = await dl.snapchat('username_HERE');
console.log(result);