Code Monkey home page Code Monkey logo

youtube-downloader's Introduction

Download Songs from YouTube

This Python script allows you to download songs (in mp3 audio or mp4 video format) from YouTube in various ways:

Features

  • Downloads songs from:
    • YouTube playlists
    • Spotify playlists (automatically searches on YouTube)
    • YouTube search
    • YouTube links
    • Spotify song links (automatically searches on YouTube)
    • Text file with YouTube links (canciones.txt)
  • Downloads audio only in mp3 or video in mp4
  • Filters special characters in file names
  • Checks if the file already exists before downloading
  • Fetches cover art and artist information from Spotify and adds it to the metadata (optional)
  • Supports multiple downloads at once
  • Has configuration options to customize the download

Requirements

  • Python 3.7 or higher
  • The following Python libraries:
    • youtube_dl
    • spotipy
    • mutagen
    • requests
    • youtube-search-python
    • pytube
    • pydub

Configuration

On first run, the config.json file will be generated with the configuration options. You need to provide the Spotify App Client ID and Client Secret to fetch song information.

The configuration options include:

  • Download directory
  • Video resolution (minimum, maximum or average)
  • Download audio and/or video
  • Enable downloading from different sources
  • Fetch metadata from Spotify

Execution Instructions

  1. Clone the repository or download the Python file.
  2. Install the required libraries using pip install -r requirements.txt.
  3. Configure the config.json file with the Spotify client IDs (you can get them here).
  4. Run the script and follow the presented instructions.

By default it will attempt to download from the sources enabled in the configuration.

Credits

  • Developed by Fvitu.

This script has been developed for educational and learning purposes.

youtube-downloader's People

Contributors

fvitu avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

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.