Code Monkey home page Code Monkey logo

youpy's Introduction

YouPY

YouPY is a Python script that downloads Youtube videos. It can output mp4 and mp3 files.

This script has only been tested on Linux. However, it may work on other distros. Please feel free to give feedback or report bug.

The command's structure is as following:

python youpy.py {mode} {link} {output directory}

The script can take up to 3 arguments:

  1. The output format ("--mp4" for mp4 file and "--mp3" for mp3 file)
  2. The youtube video link
  3. The output directory (optionnal for windows users)

By default, ouput directories are Music folder for mp3 files and Videos folder for mp4. On Linux or Mac, as those directories does not exist, you must specify the output directory.

HTUI :

How to use it? Well it's quite simple. First, make sure that all dependencies are fullfilled. Then you can use your favorite command line interpreter to run the python script like this :

python youpy.py --mp4 https://www.youtube.com/watch?v=dQw4w9WgXcQ

You can then choose the audio quality (higher abr means better quality). If you choosed to download video, you can choose the video quality (higher res means better quality). The script will ask you to enter a file name (if empty, it will take the video file name). This will then download the YouTube video to your Videos folder.

Dependencies :

Given version are the only one tested for now, the software way work or not with different version.

Plugins and Softwares :

-Python v3.10.5 Python Official Release Page

-FFmpeg Plugin v5.0.1 FFmpeg Download Page

or using chocolatey (What i used for my windows as i don't understand the file architecture ๐Ÿ˜…):

choco install ffmpeg

Python Modules :

Install instructions are provided for pip-install

-Pytube v12.1.0

pip install pytube

-ffmpeg-python v0.2.0 (wrapper)

pip install ffmpeg-python

-future v0.18.2 (retro-compat)

pip install future

youpy's People

Contributors

bobthehuge 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.