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
https://localhost:4000/video/video?url=https://www.youtube.com/watch?v=bKDdT_nyP54
- Download youtube Video Audio Only
https://localhost:4000/audio/audio?url=https://www.youtube.com/watch?v=bKDdT_nyP54
- Download Facebook HD Video
https://localhost:4000/hd/video?url=https://www.facebook.com/LyricsEngsongs/videos/321854395918041/
- Download Low Resolution Facebook Video
https://localhost:4000/low/video?url=https://www.facebook.com/LyricsEngsongs/videos/321854395918041/
- Heroku - https://sandl.herokuapp.com/
- 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 -
index.js
- Deploy on Vercel -
index.js
β Vercel having RUNTIME Failed issue while downloading the youtube Video - vercel/vercel#3825
Extract Downloadable Link From Facebook Due to recent changes in fb this method is not working
- 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