]> code.delx.au - youtube-cgi/summary
 
descriptionYouTubeCgi is a simple tool to download videos from YouTube
last changeTue, 9 Feb 2021 11:32:55 +0000 (22:32 +1100)
readme

YouTubeCgi

YouTubeCgi is a simple tool to download videos from YouTube. It is able to fetch normal videos and the protected stuff by doing some Javascript magic.

Requirements

CLI Usage

./youtube.cgi 'https://www.youtube.com/watch?v=QH2-TGUlwu4'

CGI Usage

You must install the CGI script on your web server. Ensure that you have the dependencies set up correctly and that the httpd/www-data user can access them. It may help to switch to that user and try to run the script in CLI mode.

You can then visit the CGI script and paste in a URL to download videos. Or you can use a bookmarklet:

javascript:(function(){window.location='https://example.com/path/to/youtube.cgi?url='+escape(location);})()

Bug reports

Please raise issues on the Bitbucket project.

shortlog
2021-02-09 James BuntonFixed for latest changes master
2020-12-05 James BuntonGoogle seems to care about user agents now...
2020-11-27 James BuntonUpdate user agent
2020-11-07 James BuntonSupport YouTube mobile URLs
2020-11-02 James BuntonFix for Google changes
2020-08-15 James BuntonFix for Google changes
2020-06-03 James BuntonFix for Google changes
2020-02-03 James BuntonFix for Google changes
2019-08-05 James BuntonFix for Google metadata changes to find title
2019-06-13 James BuntonFixed for Google changes
2019-01-20 James BuntonDon't try to download from non-YouTube sites
2019-01-19 James BuntonFixes for Google changes
2018-11-10 James BuntonFix for YouTube changes
2018-04-11 James BuntonFix for Google change
2017-02-22 James BuntonPort to Python3, run with only Python+Node (no libs)
2017-02-01 James BuntonFixed to handle YouTube JS changes
...
heads
3 years ago master