Giter Site home page Giter Site logo

youtube2mp3's Introduction

Convertisseur Youtube vers MP3/MP4

Ce script Python vous permet de télécharger du contenu audio (webm) ou vidéo (MP4) depuis YouTube en utilisant la bibliothèque Pytube. Vous pouvez spécifier l'URL de la vidéo YouTube que vous souhaitez télécharger ainsi que le format de téléchargement.

Utilisation

Pour utiliser ce script, suivez les étapes suivantes :

  1. Assurez-vous d'avoir Python installé sur votre système.

  2. Installez la bibliothèque pytube si elle n'est pas déjà installée en utilisant la commande suivante :

    pip install pytube
  3. Exécutez le script en spécifiant les paramètres d'entrée suivants :

--url : L'URL de la vidéo YouTube que vous souhaitez télécharger.(String)

--f : Le format de téléchargement.(String)

Voici un exemple d'utilisation :

# Télécharge uniquement le son : 
python3 youtube_downloader.py --url 'URLVideoYoutube'
# Télécharge la vidéo en MP4 :
python3 youtube_downloader.py --url 'URLVideoYoutube' --f 'V'

Le/La Son/Vidéo télécharger sera enregistré sous le nom de la vodéo et dans le répertoire actuel.

Configuration par défaut

Si vous ne spécifiez pas d'arguments, le script utilisera les valeurs par défaut suivantes : URL : "https://www.youtube.com/watch?v=Cp9pk-FkE6E" Format : 'M' -> pour uniquement le son

Remarque

Si vous spécifiez un format non pris en charge, le script affichera un message d'erreur. Les formats pris en compte sont :

  • [music ; Music ;musique ; Musique ; m ; M] pour télécharger un fichier son.
  • [video ; Video ; v ; V] pour télécharger un fichier vidéo.

Auteur

Ce script a été créé par Aulagnier Mathis.

Licence

Ce script est sous licence MIT. Consultez le fichier LICENSE pour plus de détails.

youtube2mp3's People

Contributors

mathisaulagnier avatar

Watchers

 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.