Skip to main content

Sedona is a free youtube mp3 downloader made with Python.

Project description

Sedona - a free YouTube mp3 downloader for songs

PyPI PyPI - Downloads PyPI - Status PyPI - License

Sedona downloading a playlist

Download all your favorite songs with an easy-to-use cli tool.

Contents

About

Sedona is cli tool that makes it easy to download YouTube videos and playlists and have them converted to mp3 format with 256kbps. You can use it directly with a video or playlist URL or you can create a text file with as many URLs as you want and have Sedona process it.

Our tool is the best YouTube to MP3 Converter. You get free and unlimited downloads with high quality audio. Not only you can use it as much as you want, but you can also use it wherever you want: Sedona is cross-plataform and supports many operating system, such as Windows, Mac and Linux!

It's been made with Python 3.8 and tested on Linux and Windows 10.

Usage

In order to download a YouTube video with Sedona, go to your command line and execute:

sedona [video_url]

If you want to download a playlist, you can also do as explained above:

sedona [playlist_url]

If you wish to download multiple videos and playlists, you can create a text file like this one:

https://www.youtube.com/watch?v=MktSE45zlrI
https://www.youtube.com/watch?v=zyXmsVwZqX4
https://www.youtube.com/watch?v=3nQNiWdeH2Q

Now, all you have to do is:

sedona [file_path]

In case you need it, there's a help option available:

sedona --help

Moreover, you can check the program version with:

sedona --version

Demos

It's important to note that the URL contains special characters and the shell may misinterpret it.

Having said that, you should use quotation marks to prevent bad processing of the URLs.

In order to download a video, you should run:

sedona "https://www.youtube.com/watch?v=MktSE45zlrI"

For Bash and PowerShell, the above choice is a good one.

However, if you use ZSH, you may not need to use quotation marks, because it's smart and will automatically use 'escapes'. You paste the URL into ZSH and you will have it like this:

sedona https://www.youtube.com/watch\?v\=MktSE45zlrI

Video download

I use ZSH, so I won't put quotation marks.

Since the URLs have 'escapes' already, you must run without quotation marks as well.

Let's execute:

sedona https://www.youtube.com/watch\?v\=MktSE45zlrI

Sedona downloading a video

Playlist download

Now, let's download a playlist:

sedona https://www.youtube.com/playlist\?list\=PLGtghrm-sc-KI9pS5w6jipUCxjdUSuv1K

The mp3 files will be numbered according to the playlist ordering. Addionatilly, all files will be stored in a directory with the same name as the playlist. Actually, it's not always the same name, once we have to choose a safe name.

Sedona downloading a playlist

Text file download

Let's use a text file to download some videos.

Create a text file 'urls.txt' as the one presented in the usage section.

Note that the text file should have one URL per line and there's no need to use quotation marks.

If you created the file in your currrent directory, execute:

sedona urls.txt

Sedona downloading from a text file

Output directory

The default output directory of Sedona is SedonaMP3, which is created automatically in your user directory. If you're on Linux, that's your home directory.

Showing output directory

Requirements

Check requirements.txt to see a complete list of dependencies. But, don't worry about them. They are automatically installed for you.

However, ffmpeg is required for the MP3 conversion, you need to install it on your OS. If you're on Linux, you may not need to install it or you can do so through your package manager.

If you're using a Debian-based distro, you can run:

sudo apt install ffmpeg 

If you're using a Fedora-based distro, you can run:

sudo dnf install ffmpeg 

If you're using an OpenSUSE-based distro, you can run:

sudo zypper install opi
sudo opi codecs 

If you're using an Arch-based distro, you can run:

sudo pacman -S ffmpeg

Additionally, if you're using any another Linux OS, you can download the tar file here and install it manually.

If you are a MacOS (or even a Linux) user, you can use Homebrew to install ffmpeg. Simply execute:

brew install ffmpeg

In case you are a Windows user, you can use Chocolatey to install it by running the command:

choco install ffmpeg

Remember to open CMD or PowerShell as an administrator, or you can use gsudo as I do.

You can also install it manually on MacOS or Windows. For Windows, download it and follow a guide.

Installation

There are two ways you can install Sedona. You can either install it from source or you can get it using pip.

If you want to get it from source, download the latest release on GitHub. Then, extract the source code and run:

python3 setup.py install

If you want to install Sedona with pip, you just need to run:

pip3 install sedona

You can also run:

sudo pip3 install sedona

Contribute

Feel free to reach out and contribute. We can add more features to Sedona and maybe implement our own backend.

You can also help me test it on MacOS.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sedona-1.0.1.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

sedona-1.0.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file sedona-1.0.1.tar.gz.

File metadata

  • Download URL: sedona-1.0.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12

File hashes

Hashes for sedona-1.0.1.tar.gz
Algorithm Hash digest
SHA256 97682acc341ddb829eaef98d3741b9bed4c0878d24bd8d36429116b6f6fc9d99
MD5 c72ae28889ae3db4245b2de01c5db1ed
BLAKE2b-256 cba7cf5c43858c82e5dd2712c5c7988b2530835e51c932f9ea79f6f5fe1e8dec

See more details on using hashes here.

File details

Details for the file sedona-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: sedona-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12

File hashes

Hashes for sedona-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f2cd2e85a49289899999cbd60f90f3418f60d5eb6ce12e8738a147bdac982d3
MD5 9edd16f7d41bade45756bd567b41cf25
BLAKE2b-256 62cba92b4b1ec1e07f5d95e7223994f09a53cae08fb7a9ab608dd4e6f4251404

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page