]> code.delx.au - youtube-cgi/blob - README.md
Port to Python3, run with only Python+Node (no libs)
[youtube-cgi] / README.md
1 # YouTubeCgi
2
3 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.
4
5 ## Requirements
6
7 - python 3
8 - nodejs 4+
9
10 ## CLI Usage
11
12 ```
13 ./youtube.cgi 'https://www.youtube.com/watch?v=QH2-TGUlwu4'
14 ```
15
16 ## CGI Usage
17
18 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.
19
20 You can then visit the CGI script and paste in a URL to download videos. Or you can use a bookmarklet:
21
22 ```
23 javascript:(function(){window.location='https://example.com/path/to/youtube.cgi?url='+escape(location);})()
24 ```
25
26 ## Bug reports
27
28 Please raise issues on the [Bitbucket project](https://bitbucket.org/delx/youtube-cgi/issues?status=new&status=open).