An open API service indexing awesome lists of open source software.

https://github.com/ishubham21/node-youtube-scraper

A node-based command-line scraper application/tool to download video, audio and/or subtitles from YouTube.
https://github.com/ishubham21/node-youtube-scraper

nodejs scrapper scrapping-nodejs subtitles youtube youtube-link

Last synced: about 2 months ago
JSON representation

A node-based command-line scraper application/tool to download video, audio and/or subtitles from YouTube.

Awesome Lists containing this project

README

          

# Disclaimer

This project is only for learning purposes and that only videos which you've uploaded on your YT channel can be downloaded ethically. Violating this maybe against Youtube guidelines.

# About this project

Ever found a video on Youtube so binding that you've wanted to download that but knew no way to do so? Or ever wanted to just download an audio file from Youtube?

Well, then this application can be for you.

This is a node application which is built using **ytdl-core** to help the user download the Youtube elements including Video, Audio and Subtitles directly using node CLI into their devices.

This application contains three files to facilitate the download of audio, video and/or subtitles respectively from Youtube.

With this application, the users get an upper hand in choosing the file name of their choice so to help the users sort files which they've downloaded using this application.

# Running and using

* Clone this repo

```
git clone --depth 1 https://github.com/ishubham21/youtube-scrapper.git
```

* Make sure you've node installed in your system.

Type in your terminal
```
node --version
```

* Go the root folder of this project i.e. where the *package.json* is present and run the following command in the terminal to install the required modules

```
npm install
```

* Now you're all set to give it a boost.

* To download a video from youtube, type in your terminal

```
node video.js
```

In the above command, youtube link and filename are both optional and can be left out without invoking any error.

* To download audio from youtube, type in your terminal

```
node audio.js
```

In the above command, youtube link and filename are both optional and can be left out without invoking any error.

* To download the subtitles from youtube, type in your terminal

```
node subtitles.js
```

This command will download subtitles in your root directory if present, and will print you a message saying 'Subtitles Missing'.

## Errors/bugs

To report any error/bugs in this project, please create an issue and I'll be more than happy to look into that.