Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/milan-sony/ytdwnlder

A simple command line youtube video/audio downloader
https://github.com/milan-sony/ytdwnlder

command-line pip python pytube

Last synced: 12 days ago
JSON representation

A simple command line youtube video/audio downloader

Awesome Lists containing this project

README

        

# ytdwnlder

A simple command line youtube video/audio downloader

I have read one blog on dev.to - How to Download YouTube videos in Python so I thought to build the same

## Read documentation about

- pytube

## Libraries used

- `pytube`

## Run locally

You will need to install Python on you system, head over to https://www.python.org/downloads/ to download python.
(Dont Forget to tick `Add Python to PATH` while installing Python)

Once you have downloaded Python on your system,
run the following command inside your terminal (only if your system is git enabled, otherwise download the zip file and extract it)

```bash
git clone https://github.com/milan-sony/ytdwnlder.git
```

Then go to the project folder

```bash
cd ytdwnlder
```

(This is optional, but strongly recommended) Make a virtual environment

```bash
python -m venv venv
```

Activate the virtual environment

```bash
venv/Scripts/activate
```

If error occurs when activating virtual environment, run the following command (after that activate the virtual environment again)

```bash
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
```

Then Install the dependencies needed for this project

```bash
pip install -r requirements.txt
```

Now run the script

```bash
python ytdwnlder.py
```

## Screenshot