Skip to main content

No project description provided

Project description

PyTuneGrab

Welcome to the PyTuneGrab documentation! PyTuneGrab is a Python tool designed for downloading and converting YouTube audio and video content. It provides a convenient interface for fetching content, converting videos to MP3 audio, and organizing your media library.

Main Features

Audio Download: Download audio from YouTube videos and convert them to the mp3 format. Video Download: Download videos from YouTube. Playlist Handling: Efficiently download and convert playlists.

Requirements

  • Python 3.7 or higher
  • FFmpeg
  • PyTube
  • MoviePy

How to Use

  1. Install the required libraries:
pip install pytube moviepy
  1. Make sure you have installed FFmpeg.

  2. Import the relevant classes from PyTuneGrab in your Python script.

  3. Create a instance of the desired downloader class.

The download will be done in a folder called "downloads" in the root folder of the directory, if an output path is not provided

Below, we present basic examples of use:

Downloading and Converting Audio

from pytunegrab.core import YTDownloader

downloader = YTDownloader()

# Download and convert a single video
video_url = "https://www.youtube.com/watch?v=your_video_id"
converted_audio_path = downloader.download_audio(video_url)

print(f"Converted Audio: {video_url} -> {converted_audio_path}")

Downloading and Converting Video

from pytunegrab import YTDownloader

downloader = YTDownloader()

# Download a video
video_url = "https://www.youtube.com/watch?v=your_video_id"
downloaded_video_path = downloader.download_video(video_url)

print(f"Downloaded Video: {video_url} -> {downloaded_video_path}")

The script will identify whether it is a playlist or not.

All the downloaders follow a similar pattern. You just need to specify the type of content you want to download, whether audio, video, or a playlist.

Roadmap

We are committed to expanding the functionalities of this library. Planned future enhancements include:

Improved handling of video resolutions. Support for additional audio formats.

Contact

Email: dudulj@live.com

GitHub: edududs

License

MIT License

Copyright (c) 2023 Eduardo Lima de Jesus

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

pytunegrab-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytunegrab-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file pytunegrab-0.1.0.tar.gz.

File metadata

  • Download URL: pytunegrab-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for pytunegrab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f1e05a32723a214abfe1d235010c8c4f142e3da04c198e9c9a6cecd99c0735d9
MD5 b23d0e774bd355beeb9307d70c6dbcb1
BLAKE2b-256 babc4b31c3c9ee5c1aa75fc99488fee34353c5380d8fc0e1e8bc6c94ac029e2b

See more details on using hashes here.

File details

Details for the file pytunegrab-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytunegrab-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for pytunegrab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f311038c6799d73008104fbf600e16bacb9940ae1e3bd42038790f1a5019950c
MD5 5404ff7c3c271d1bb1e9e91a3a2e745e
BLAKE2b-256 fd31f3810121f2fb145669700089ccd371f6b8ec853c45df7f5bca99d5d3fa81

See more details on using hashes here.

Supported by

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