![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
A command-line client for extracting mp3s from YouTube videos
You need a working installation of ffmpeg on your system. If you're on a Mac, you can use HomeBrew to install it like this:
$ brew install ffmpeg
ytb2mp3
can be installed via npm:
$ npm install ytb2mp3 -g
ytb2mp3
can be configured by passing command-line flags. The following flags are available:
--set-output-path <path> The absolute path where the downloaded files should be stored (default: /tmp)
The directory is automatically created if it doesn't exist
--set-video-quality <quality> The quality of the YouTube videos that should be requested (default: highesst)
--set-ffmpeg-path <path> The absolute path to the ffmpeg binary (default: /usr/local/bin/ffmpeg)
--set-progress-timeout <milliseconds> The time in milliseconds in which the download progress should be refreshed
(default: 200ms)
This information is also displayed when ytb2mp3
is called with the --help
flag.
The configuration options will be persisted in ~/.config/configstore/ytb2mp3.json
.
$ ytb2mp3 https://www.youtube.com/watch?v=Vhd6Kc4TZls
This will yield in the following output:
Downloading [██████████████████████████░░░░░░░░░░░░░░] 65% | ETA: 3s | Runtime: 4s | Speed: 1518.28 kbytes/sec
After the finished download, it will point to the output file:
Song was downloaded: /Users/username/yt2mp3/Cold Funk - Funkorama.mp3
You can use the --name "filename.extension"
flag to specify a name for the output file:
$ ytb2mp3 --name "Cold Funk - Funkorama.mp3" https://www.youtube.com/watch?v=Vhd6Kc4TZls
This is useful if the algorithm of youtube-mp3-downloader
cannot automatically determine a decent filename from the video's metadata.
Copy a video URL from your browser. Then, you can use the command
$ pbpaste | ytb2mp3
to directly download the video's audio.
FAQs
Convert YouTube videos to mp3 files via the command-line
The npm package ytb2mp3 receives a total of 13 weekly downloads. As such, ytb2mp3 popularity was classified as not popular.
We found that ytb2mp3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.