Skip to content

Latest commit

 

History

History
99 lines (68 loc) · 2.93 KB

README.md

File metadata and controls

99 lines (68 loc) · 2.93 KB

YouTubeDL - Powerful YouTube Downloader 🚀

YouTubeDL

Welcome to YouTubeDL! A sleek, user-friendly, and efficient tool to download YouTube videos in the best available quality. Powered by yt-dlp, this downloader ensures fast downloads, supports video formats, and can bypass most common restrictions.

Features ✨

  • High-Quality Downloads: Download videos in the best resolution available.
  • Multiple Formats: Supports MP4, WEBM, and more.
  • Fast & Reliable: Powered by yt-dlp, a powerful YouTube downloader.
  • Simple & Easy: Just paste the URL and you're good to go!
  • Cross-Platform: Works on Windows, macOS, and Linux.

Installation 📦

Install Dependencies

Make sure you have Python installed, and then run the following command to install the necessary libraries:

pip install yt-dlp

This will install the required yt-dlp library, which is at the core of the downloader.

Usage 💡

Simple Video Download

  1. Run the Python script:
    python youtube_downloader.py
  2. Enter the YouTube Video URL when prompted:
    Enter the YouTube video URL: https://youtu.be/your-video-url

The script will automatically download the video in the highest available quality and save it to your current working directory.

Download Specific Format or Quality 🎞️

You can modify the yt_dlp options in the script to specify video formats and quality (HD, SD, etc.) to suit your needs.

Example Code 📝

import yt_dlp

url = input("Enter the YouTube video URL: ")

ydl_opts = {
    'format': 'best',  # Download the best quality available
}

try:
    with yt_dlp.YoutubeDL(ydl_opts) as ydl:
        ydl.download([url])
    print("Download complete!")
except Exception as e:
    print(f"An error occurred: {e}")

Options

  • best: Download the best available quality.
  • worst: Download the lowest quality.
  • mp4: Download in MP4 format.

Troubleshooting 🛠️

If you encounter a 403 Forbidden error, it might be due to age or region restrictions. You can:

  • Use a VPN to bypass region-based restrictions.
  • Ensure the video is public and not age-restricted.

If yt-dlp doesn't work with certain videos, it's always worth checking for updates:

pip install --upgrade yt-dlp

Contributing 🤝

Feel free to contribute! Open an issue or submit a pull request if you'd like to improve the project.

Ideas for Contribution:

  • Add GUI (Graphical User Interface) support for better usability.
  • Enhance the code with more download options like playlists, captions, etc.
  • Improve error handling and logging.

License 📜

This project is licensed under the MIT License - see the LICENSE file for details.


Let’s Get Downloading! 🎬

With YouTubeDL, downloading your favorite YouTube videos is quick and easy. 🚀