On Sat, Sep 24, 2011 at 5:42 AM, Bob Proulx <b...@proulx.com> wrote: > lina wrote: > > Gilbert Sullivan wrote: > > > You could just use apt-get or aptitude to install the youtube-dl > package. > > > To use it you can just issue a command like > > > > > > $ youtube-dl <address of YouTube video you want to download> > > > > > > That will put the video in your home directory. > > I use youtube-dl all of the time. Works great. But as the youtube > site changes you need to keep the script updated. Since it is just a > script usually the latest one from Sid can be used on the old Stable > with no trouble. Works for me. > > > $ youtube-dl http://www.youtube.com/watch?v=dREKkAk628I&feature=related > > [1] 18854 > > You almost always need to quote the URL. See that "&" in it? That > ampersand is special to the shell. It says to run the commandin the > background. URLs often have those. Therefore you often need to quote > the URL when used as a command line option argument. >
Thanks. $ youtube-dl "http://www.youtube.com/watch?v=dREKkAk628I&feature=related" [youtube] Setting language [youtube] dREKkAk628I: Downloading video webpage [youtube] dREKkAk628I: Downloading video info webpage [youtube] dREKkAk628I: Extracting video information Traceback (most recent call last): File "/usr/bin/youtube-dl", line 2987, in <module> retcode = fd.download(all_urls) File "/usr/bin/youtube-dl", line 604, in download ie.extract(url) File "/usr/bin/youtube-dl", line 844, in extract return self._real_extract(url) File "/usr/bin/youtube-dl", line 1135, in _real_extract 'player_url': player_url, File "/usr/bin/youtube-dl", line 571, in process_info success = self._do_download(filename, info_dict['url'].encode('utf-8'), info_dict.get('player_url', None)) File "/usr/bin/youtube-dl", line 775, in _do_download stream.close() AttributeError: 'NoneType' object has no attribute 'close' p$ youtube-dl 'http://www.youtube.com/watch?v=dREKkAk628I&feature=related' [youtube] Setting language [youtube] dREKkAk628I: Downloading video webpage [youtube] dREKkAk628I: Downloading video info webpage [youtube] dREKkAk628I: Extracting video information Traceback (most recent call last): File "/usr/bin/youtube-dl", line 2987, in <module> retcode = fd.download(all_urls) File "/usr/bin/youtube-dl", line 604, in download ie.extract(url) File "/usr/bin/youtube-dl", line 844, in extract return self._real_extract(url) File "/usr/bin/youtube-dl", line 1135, in _real_extract 'player_url': player_url, File "/usr/bin/youtube-dl", line 571, in process_info success = self._do_download(filename, info_dict['url'].encode('utf-8'), info_dict.get('player_url', None)) File "/usr/bin/youtube-dl", line 775, in _do_download stream.close() AttributeError: 'NoneType' object has no attribute 'close' is my laptop lack something? some module? I tried the 'URL' and "URL" Thanks, > > Bob > -- Best Regards, lina