Giter Club home page Giter Club logo

social-media-downloader2's Introduction

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);
    }
)();

Twitter

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);

Twitter

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);

social-media-downloader2's People

Contributors

m7medvision avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.