Skip to main content

Youtube Downloader

Introduction

Download youtube videos and convert them to mp3.

User Guide

How to Install

To install ytb_downloader by running:

$ pip install ytb_downloader

How to Use

You can use the command line tool from ytb_downloader to download audios or videos from Youtube.

Download Audio

Start downloading a single audio by calling:

$ ytb_downloader "<your youtube video url>"

If you want to specify the format of the downloaded video, you can use the option –format or -f with the format as string, such as:

$ ytb_downloader --format "mp3" "https://www.youtube.com/watch?v=nOubjLM9Cbc"

For more details, please execute:

$ ytb_downloader --help

Download Video

Start downloading a single video by calling:

$ ytb_downloader --video-only "<your youtube video url>"

Download in bulk

If you want to download audios in bulk, please prepare a csv file containing all the urls of the audios. Here is an example about how does this csv file look like.

example-url-only.csv

url

https://www.youtube.com/watch?v=WqkjYKUXERQ

https://www.youtube.com/watch?v=nOubjLM9Cbc

Here is the content of the example-url-only.csv file:

url
https://www.youtube.com/watch?v=WqkjYKUXERQ
https://www.youtube.com/watch?v=nOubjLM9Cbc

In the csv file, you can also specify the format, time_start, time_end and bitrate for each audio, such as

example.csv

url

format

time_start

time_end

fps

bitrate

https://www.youtube.com/watch?v=WqkjYKUXERQ

mp3

0

44100

3000k

https://www.youtube.com/watch?v=nOubjLM9Cbc

mp3

3

100

200

500k

Here is the content of the example.csv file:

url,format,time_start,time_end,fps,bitrate
https://www.youtube.com/watch?v=WqkjYKUXERQ,mp3,0,,44100,3000k
https://www.youtube.com/watch?v=nOubjLM9Cbc,mp3,3,100,200,500k

To download all the audios from the urls listed in this file by calling:

$ ytb_downloader_bulk example.csv

If you want to download the videos only, you need to provide a csv file with one column url, and list all the urls you want to download in that column. Then execute:

$ ytb_downloader_bulk --video-only example.csv

Maintainers

Metadata

Release files for ytb-downloader 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ytb-downloader 0.4.0
File Interpreter ABI Platform
ytb_downloader-0.4.0-py3-none-any.whl Python 3 none any Details

Release files / ytb_downloader-0.4.0-py3-none-any.whl

Download URL ytb_downloader-0.4.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efedf19f2fb951c137d4d3c04f14aa70eefa81a6f2e4a544e9a38226eedcf4d4
BLAKE2b-256 checksum
How to use checksums
09863488e417c809860b03b7f8518b20364cbcac22a439b7a4b80bd4b67d37f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.3.2

2 release files

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page