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

https://github.com/elainefs/download-videos-yt

Program using pytube to download YouTube videos via CLI on Linux.
https://github.com/elainefs/download-videos-yt

linux python3 pytube video youtube

Last synced: 2 months ago
JSON representation

Program using pytube to download YouTube videos via CLI on Linux.

Awesome Lists containing this project

README

        






## 📘 About
Program using [pytube](https://pytube.io/en/latest/#) to download YouTube videos via CLI on **Linux**.

## ⚒️ Tools
- [Linux](https://www.linux.org/pages/download/)
- [Python 3](https://www.python.org/downloads/)
- [Pytube](https://pytube.io/en/latest/)

## 💻 Installing pytube
To install pytube, run the following command in your terminal:
```bash
$ pip3 install pytube
```

## ⬇️ Download the file

[downloadYT.py](https://github.com/elainefs/download-videos-YT/archive/refs/heads/main.zip)

## 🎲 How use
1. Open the terminal and navigate to the folder where the zip file downloaded in the previous step was saved
2. Extract the file:
- On Linux run the command `$ unzip download-videos-YT-main.zip`
3. Navigate to the folder that was extracted `$ cd download-videos-YT-main`
4. To start the program, run the command `$ python3 downloadYT.py`
5. Enter the video link. Eg: https://www.youtube.com/watch?v=-rLt89HZ6DQ
6. Enter the name of the folder where the video will be saved. Eg: Downloads
Note: A folder with the name you entered will be created inside the directory where the program is running
7. The program will display the video information: Title, Number of Views, Size in seconds, Number of Ratings
8. The video will start to download
9. When the download is complete the message **'Download complete!'** will appear.

## 📄 License
This project is under the MIT license. See the [LICENSE](https://github.com/elainefs/download-videos-YT/blob/main/LICENSE) file for more details.


Made with ❤️ by [Elaine Ferreira](https://github.com/elainefs)