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.1.tar.gz (6.3 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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytunegrab-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 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.1.tar.gz
Algorithm Hash digest
SHA256 35e17099e6645a0a0648c1f6eb8bdf55014692c68f529aaff5933abd165153f8
MD5 acd6b3abafe2eb86df2317043b9e6982
BLAKE2b-256 06d0760ac040825e76959ebadebff2a6288b09eb8c380f6f5fb1ec91642e71e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytunegrab-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 784dc6d78396d37ce9b036561c4981e6e8b1df7f6edced585cddf9c2c3aa1d46
MD5 f7bf49eaa345f175093a8d6c540bd8a5
BLAKE2b-256 f851d3b8f57b5c86a89c1fcb07a4a7fce53cf0d563c5c55d4121f8d4ebba1735

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