Tech Support > Computers & Technology > command to download youtube videos - youtube-dl.pl AND PATH withperl scripts.
command to download youtube videos - youtube-dl.pl AND PATH withperl scripts.
Posted by jameshanley39@yahoo.co.uk on November 21st, 2007


subject- command to download youtube videos - youtube-dl.pl AND
interesting thing about PATH

youtube is banning videos and suspending accounts, so it may be all
the more useful now to download videos . Even michelle malkin,
because of her politically right wing views, had a video removed. It
seems these events have occurred since youtube was taken over by
google. Notice that Google Video videos do not have comments on them
either. It is censorship.

anyhow. To download..

you can download and install the Perl interpreter. Then, download a
file called youtube-dl.pl and make sure it has the extension .pl
And 2 interesting things happen
a)it runs like a command as if it were .exe (I am not saying it
opens a program and runs. But it runs as if it were an EXE command!).
It is a command line thing. (it may open a program in the background
to produce the illusion, but anyhow)
One could save it to the desktop, and run it
c:\documents and settings\username\desktop\>youtube-dl.pl parameters
(parameters/arguments being the thing you pass to it).

b)it so runs like an executable (like an EXE,COM,BAT) that when you
type in the name of the pl file, remembering to say .pl , it
searches the PATH. As if PATH includes .pl as an executable along with
EXE,COM and BAT!! e.g. since c:\windows in in the PATH. If you copy
youtube-dl.pl there then you can type youtube-dl.pl from any
directory and it executes.







Posted by jameshanley39@yahoo.co.uk on November 28th, 2007


On Nov 21, 7:04 pm, "jameshanle...@yahoo.co.uk"
<jameshanle...@yahoo.co.uk> wrote:
hmm..
actually i think it uses python, and it is not .pl either.
and also,
even a file called "a.b", if you type a.b at the command line, windows
tries to open it.
http://www.arrakis.es/~rggi3/youtube-dl/

But this guy has done something like it in perl
http://www.catonmat.net/blog/how-to-...grammatically/
which perhaps it may be possible to do something similar to download
videos from other sites. if you know stuff

when I say upload. I am talking command line. Not web interface.
he also has a video on downloading them
http://www.catonmat.net/blog/downloa...erl-one-liner/

sorry for the confusion.


Similar Posts