Giter VIP home page Giter VIP logo

yt2mp3's Introduction

YT2MP3

YouTube to MP3 Converter

YT2MP3.py is a Python script that allows you to convert YouTube videos to MP3 audio format. It utilizes the YouTube to MP3 conversion API from RapidAPI to perform the conversion. Simply provide a list of YouTube video URLs in a text file, and the script will automatically download the corresponding MP3 files to a specified download path.

Prerequisites

How to Use

Follow these steps to use the script:

  • Clone or download this repository to your local machine.
  • Install the required dependencies by running the following command in your terminal:
pip install requests

Prepare a text file (youtubeURLs.txt) containing the YouTube video URLs, one URL per line. Ensure that you place this file in the same directory as the script.

Open the script (YT2MP3.py) and modify the following variables:

  • URLS_FILE_PATH: The file path of the text file containing the YouTube video URLs (default: "youtubeURLs.txt").
  • DOWNLOAD_PATH: The directory where you want the downloaded MP3 files to be saved. Replace {YOUR_DOWNLOAD_PATH} with your desired path.
  • Insert your RapidAPI key into the HEADERS dictionary by replacing {YOUR_RAPID_API_KEY} with your actual API key.

Run

Run the script by executing the following command in your terminal or command prompt:

python YT2MP3.py

The script will read the list of YouTube video URLs from the text file, convert each video to MP3, and save the resulting MP3 files in the specified download path.

Please be aware that downloading copyrighted material from YouTube may infringe upon YouTube's terms of service or copyright laws in your country. Ensure that you have the necessary permissions to download and use the content legally.

Disclaimer

This script is intended for educational and personal use only. The authors are not responsible for any misuse of this script or violations of YouTube's terms of service or copyright laws. Always use this tool responsibly and respect the rights of content creators.

yt2mp3's People

Contributors

mrkyrios avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

vivekmasona

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.