GithubHelp home page GithubHelp logo

boguscurry / youtube-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeckman/youtube-downloader

0.0 0.0 0.0 616 KB

PHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers

ApacheConf 0.39% PHP 85.05% JavaScript 14.56%

youtube-downloader's Introduction

Project: YouTube Downloader
Author: John Eckman
URL: https://github.com/jeckman/YouTube-Downloader
License: GPL v2 or Later

PHP Scripts to download videos from YouTube.  

NOTE: YouTube Downloader does not work with videos using a cipher signature. 

See jeckman#9

In order for direct download links to work (clicking on the file type in results list)
your server must be using IPv6. If you are using IPv4, YouTube checks to see if the token
matches the IP and returns an access forbidden error. If you are unable to use IPv6, you
can use the "download" link instead, which uses a simple proxy to open the file from
the server and read the file out to the browser. 

You can manually visit a web form (the index.php file), enter a YouTube
video id, and get in return a list of links showing the various formats in which
that video can be downloaded. You can simply choose "save link as" or the 
equivalent to download the file. 

Second, you can directly target the getvideo.php script, passing in a videoID and
preferred format, and you will get redirected to the file itself. 

http://example.com/yt/getvideo.mp4?videoid=GkvvH8pBoTg&format=ipad

Potential formats:
 * best = just give me the largest file / best quality
 * free = give the largest version including WebM, lower priority to FLV
 * ipad = ignore WebM and FLV, look for best MP4 file

You can also pass in a specific format number, if you know it. 

Note this approach, because it redirects you to the file itself, currently bypasses the
proxy option, so if your browser/server setup requires the proxy to work these will fail. 
  
Enjoy!

John

youtube-downloader's People

Contributors

aganel avatar airesvsg avatar bitnol avatar blagynchy avatar eloydegen avatar itseasy21 avatar jeckman avatar kolahzary avatar sepehr 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.