GithubHelp home page GithubHelp logo

youtuberest's Introduction

YouDown REST

YouDown REST is a small python's REST service for downloading a youtube videos. The service required python 3.7 or above. The service uses pytube and Flask python libraries.

Dependency installation

pip install -r requirments.txt

Run server

python3 main.py

REST endpoints

/streams

The /streams endpoint receives as an argument JSON with an url parameter referring to a YouTube video, for example:

{
	'url': 'https://www.youtube.com/watch?v=_3EuiU1qdpE'
}

The response will be an array of JSON objects, each represent available video stream, and has the following fields:

  • itag - iTag number (stream identification number)
  • res - Video resolution
  • mime_type - MIME type
  • fps - FPS (or empty string)
  • bitrate - Bitrate, bps
  • acodec - Audio codec name
  • vcodec - Video codecs
  • progressive - True if progressive coding was used, otherwise False
  • file_size - File size in bytes
  • title - Video title
  • type - Stream type (?)

/download/XXX

The /download/XXX endpoint is a link for downloading a video stream, for which was previously the request /streams made. The XXX in the link is a iTag value of selected stream. This link can be used in the <a> element, for example:

<a src="/download/1">Download stream #1</a>
<a src="/download/2">Download stream #2</a>
...

youtuberest's People

Contributors

melifaro11 avatar miaraylight avatar

Watchers

 avatar

Forkers

miaraylight

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.