Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskian/video-dl
Video Downloader 📥 - Download Facebook Video and Youtube Video and Audio.
https://github.com/mskian/video-dl
express got json video-downloader youtube-dl youtube-downloader youtube-video
Last synced: 2 days ago
JSON representation
Video Downloader 📥 - Download Facebook Video and Youtube Video and Audio.
- Host: GitHub
- URL: https://github.com/mskian/video-dl
- Owner: mskian
- License: mit
- Created: 2021-01-13T18:35:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-12T03:34:57.000Z (2 months ago)
- Last Synced: 2024-10-18T23:20:45.156Z (2 months ago)
- Topics: express, got, json, video-downloader, youtube-dl, youtube-downloader, youtube-video
- Language: JavaScript
- Homepage: https://sandl.herokuapp.com/
- Size: 220 KB
- Stars: 25
- Watchers: 5
- Forks: 19
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Video Downloader 📥
![API Test](https://github.com/mskian/video-dl/workflows/GET%20Test/badge.svg)
Video Downloader - Download Facebook Video and Youtube Video and Audio.
🤖 Easy to use - Just add the URL Done...!
## Built with 📦
- Node.js
- Yarn Package manager
- Express.js
- Node youtube-dl -
- Got (HTTP request library) -
- CORS (Enable cors for Express.js) -
- slugify(Slugify a string) -
- split -## Usage ✨
- Clone or download the repo
```sh
git clone https://github.com/mskian/video-dl.git
``````sh
cd video-dl
yarn install
```- start the server
```sh
yarn start
```- Download Youtube video
```html
http://localhost:4000/video/video?url=https://www.youtube.com/watch?v=bKDdT_nyP54
```- Download youtube Video Audio Only
```html
http://localhost:4000/audio/audio?url=https://www.youtube.com/watch?v=bKDdT_nyP54
```- Download Facebook HD Video
```html
http://localhost:4000/hd/video?url=https://www.facebook.com/LyricsEngsongs/videos/321854395918041/
```- Download Low Resolution Facebook Video
```html
http://localhost:4000/low/video?url=https://www.facebook.com/LyricsEngsongs/videos/321854395918041/
```## Try Online 🌐
- Heroku -
## Formats 📼
- if you want to Change youtube Video & Audio Quality/Formats
```js
ytdl(url, {
format: 'mp3',
filter: 'audioonly',
quality: 'highest'
}).pipe(res);
``````js
ytdl(url, {
format: 'mp4',
quality: 'highest'
}).pipe(res);
```For More check-
## Free Deploy 🍔
- Deploy on Heroku - `index.js`
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/mskian/video-dl)
- Deploy on Vercel - `index.js`
⚠ Vercel having RUNTIME Failed issue while downloading the youtube Video -
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fmskian%2Fvideo-dl)
## Extract Downloadable Link (Not Working) ✂
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`
```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);
});
```## Disclaimer ⚠
- 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.### LICENSE ☑
MIT