Video Downloader - Download Facebook Video and Youtube Video and Audio.
🤖 Easy to use - Just add the URL Done...!
- Node.js
- Yarn Package manager
- Express.js
- Node youtube-dl - https://github.com/fent/node-ytdl-core
- Got (HTTP request library) - https://github.com/sindresorhus/got
- CORS (Enable cors for Express.js) - https://github.com/expressjs/cors
- slugify(Slugify a string) - https://github.com/sindresorhus/slugify
- split - https://www.w3schools.com/jsref/jsref_split.asp
- Clone or download the repo
git clone https://github.com/mskian/video-dl.git
cd video-dl
yarn install
- start the server
yarn start
- Download Youtube video
http://localhost:4000/video/video?url=https://www.youtube.com/watch?v=bKDdT_nyP54
- Download youtube Video Audio Only
http://localhost:4000/audio/audio?url=https://www.youtube.com/watch?v=bKDdT_nyP54
- Download Facebook HD Video
http://localhost:4000/hd/video?url=https://www.facebook.com/LyricsEngsongs/videos/321854395918041/
- Download Low Resolution Facebook Video
http://localhost:4000/low/video?url=https://www.facebook.com/LyricsEngsongs/videos/321854395918041/
- Heroku - https://sandl.herokuapp.com/
- Vercel - https://sandl.vercel.app/
- if you want to Change youtube Video & Audio Quality/Formats
ytdl(url, {
format: 'mp3',
filter: 'audioonly',
quality: 'highest'
}).pipe(res);
ytdl(url, {
format: 'mp4',
quality: 'highest'
}).pipe(res);
For More check- https://github.com/fent/node-ytdl-core#ytdlchooseformatformats-options
- Deploy on Heroku -
app.js
- Deploy on Vercel -
index.js
⚠ Vercel having RUNTIME Failed issue while downloading the youtube Video - vercel/vercel#3825
Extract Downloadable Link From Facebook
- Download link (Low and Hight)
- Title
- slug (used for file naming)
lib/fbvid.js
const fbvid = require('./lib/fbvid.js');
const video = 'https://www.facebook.com/LyricsEngsongs/videos/321854395918041/';
fbvid.low(video).then(vid => {
console.log(vid)
});
fbvid.high(video).then(vid => {
console.log(vid);
});
fbvid.title(video).then(vid => {
console.log(vid);
});
fbvid.slug(video).then(vid => {
console.log(vid);
});
- Use this as your Personal Tool if you are going to this on Production Please read the terms and Policy from Facebook & Youtube.
- This Tool does not Host any Pirated or Copyright content on its server and all
- We are not Affiliate or Authorized with Facebook - This Tool only for Educational Purpose.
- The videos or images that you downloaded to your System or Mobile directly from their respective CDN servers.
MIT