Metadata-Version: 2.1
Name: youtubetogo
Version: 0.1.3
Summary: A script to download and convert YouTube videos to either video or audio format.
Author-email: kdcllc <info@kingdavidconsulting.com>
License: MIT
Project-URL: Homepage, https://github.com/kdcllc/youtubetogo
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: pytube
Requires-Dist: python-dotenv
Requires-Dist: argparse

# YouTube Video Downloader and Converter

This script downloads and converts YouTube videos to either video or audio format. It can download videos from a specific channel or a single video URL.

## Requirements

1. **ffmpeg** to be installed on the system.

```bash
sudo apt install ffmpeg
```

2. If desired to download all of the videos from a specified channel then [**YouTube Data API v3**](https://console.cloud.google.com/apis/) key must be created.


## Installation

### Install from [pypi.org](https://pypi.org/project/youtubetogo/)

```bash
    pip install youtubetogo
```

### Project 

You can install the package using pip from the source directory:

``bash
    git clone https://github.com/kdcllc/youtubetogo
```
```bash
    pip install .
```

## Command Line Usage

```bash
    youtubetogo -u <video_url> [-a]

    # YouTube Data API v3 api key is required
    # store the key in .env file use .env.sample file
    youtubetogo -c <channel_id> [-a]
```

```bash
python main.py -u <video_url> [-a]
python main.py -c <channel_id> [-a]
```

### Arguments

- `-a`, `--audio`: Convert videos to audio
- `-u`, `--url`: URL of the video to download and convert
- `-c`, `--channel`: Channel ID to download and convert videos from

## Deploy

```bash
pip install build twine
```

```bash
python -m build
twine upload dist/*
```

