Social Media Downloader
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.
Installing
npm install social_media_downloader
Importing in node js
const dl = require("social_media_downloader");
Using in node js
Tiktok
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);
}
)();
Youtube
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);
}
)();
SnapChat
let username = "hatanbado"; // here put the username
(
async () => {
const data = await dl.snapchat(username); // The result is a json
console.log(data);
}
)();
Importing in Deno
import * as dl from 'https://deno.land/x/social_media_downloader/mod.ts';
Using in Deno
Tiktok
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);
Youtube
const result = await dl.youtube('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
console.log(result);
Snapchat
const result = await dl.snapchat('username_HERE');
console.log(result);