]> code.delx.au - youtube-cgi/blob - README.md
cb61c364de5a79d2a0689868a5497a152036aa91
[youtube-cgi] / README.md
1 # YouTubeCgi
2
3 YouTubeCgi is a simple tool to dowload 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 2.7
8 - python-lxml
9 - nodejs 4+
10
11 ## CLI Usage
12
13 ```
14 ./youtube.cgi 'https://www.youtube.com/watch?v=QH2-TGUlwu4'
15 ```
16
17 ## CGI Usage
18
19 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.
20
21 You can then visit the CGI script and paste in a URL to download videos. Or you can use a bookmarklet:
22
23 ```
24 javascript:(function(){window.location='https://example.com/path/to/youtube.cgi?url='+escape(location);})()
25 ```