https://github.com/jefferson10147/youtube-video-downloader
This is a CLI to navigate and download YouTube videos
https://github.com/jefferson10147/youtube-video-downloader
download-videos python3 pytube youtube-api
Last synced: 21 days ago
JSON representation
This is a CLI to navigate and download YouTube videos
- Host: GitHub
- URL: https://github.com/jefferson10147/youtube-video-downloader
- Owner: jefferson10147
- License: gpl-3.0
- Created: 2021-03-30T20:42:48.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-04T15:50:25.000Z (about 4 years ago)
- Last Synced: 2025-02-15T08:30:56.659Z (2 months ago)
- Topics: download-videos, python3, pytube, youtube-api
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Youtube downloader cli
This cli app allows you to download every single video you want from YouTube, It works with Pytube which is a python 3 library and YouTube API.
## How to run this cli (linux)
1- Clone this project, on your local machine:
```bash
$ git clone https://github.com/jefferson10147/youtube-video-downloader
```2- Inside project root directory, you have to create a virtual enviroment if you don't want to install all dependencies in your machine
```bash
$ python3 -m venv your_env_name
```3- Turn on your virtual enviroment
```bash
$ source your_env_name/bin/activate
```4- Finally you have to install dependencies
```bash
$ pip install -r requirements.txt
```## How to use this cli
1- To download a video you can use the url, just passing -u or --url flag
```bash
$ python3 yt_downloader.py -u 'https://www.youtube.com/watch?v=8SbUC-UaAxE'
```2- You can navigate through youtube, search results, and download a desired video, for this you need a developer key of the YouTube api, you can get it in Google api's. Once you have the key you just have to create a config.ini file with the following structure:
```
[app]
api_token = your_youtube_api_token
```Now you are ready to use cli YouTube navigation just passing -q or --query flag following by the query you want to search
```bash
$ python3 yt_downloader.py -q 'python courses'
```3- To see all commands you can type in your console
```bash
$ python3 yt_downloader.py --help
```