https://github.com/paveldat/youtube-video-downloader
Youtube video downloader on Python
https://github.com/paveldat/youtube-video-downloader
api downloader python python-video-downloader python3 video-downloader youtube youtube-api youtube-video youtube-video-downloader
Last synced: 4 months ago
JSON representation
Youtube video downloader on Python
- Host: GitHub
- URL: https://github.com/paveldat/youtube-video-downloader
- Owner: paveldat
- Created: 2022-12-20T21:06:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-23T19:21:42.000Z (over 2 years ago)
- Last Synced: 2024-09-25T03:30:58.031Z (9 months ago)
- Topics: api, downloader, python, python-video-downloader, python3, video-downloader, youtube, youtube-api, youtube-video, youtube-video-downloader
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Youtube Video Downloader
## How to install
1. Clone this repository on your computer
`https://github.com/paveldat/youtube-video-downloader.git`
2. Install all the requirements
`pip install -r requirements.txt`
3. Run the usage
`python youtube_downloader.py -h`## Advantages
1. This is an API that can easily be implemented into your project
2. Supports any links from Youtube
3. It has argparse for convenient use from the console
4. Accepts all possible arguments## Usage `python youtube_downloader.py -h`
```shell
usage: youtube_downloader.py [-h] [-o output_path] [-f filename] [-p filename_prefix] [-s] [-t timeout] [-m max_retries] urlpositional arguments:
url URL to the videooptions:
-h, --help show this help message and exit
-o output_path, --output-path output_path
Output path for writing media file. If one is not specified, defaults to the current working directory.
-f filename, --filename filename
Output filename (stem only) for writing media file. If one is not specified, the default filename is used.
-p filename_prefix, --filename-prefix filename_prefix
A string that will be prepended to the filename. For example a number in a playlist or the name of a series. If one is not specified, nothing will be prepended. This is separate from
filename so you can use the default filename but still add a prefix.
-s, --skip-existing Skip existing files, defaults to True.
-t timeout, --timeout timeout
Request timeout length in seconds. Uses system default.
-m max_retries, --max-retries max_retries
Number of retries to attempt after socket timeout. Defaults to 0.
```