PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : آموزش دانلود از youtube با دستور wget



Metalik
January 27th, 2011, 11:16
$ wget http://www.youtube.com/watch?v=dQw4w9WgXcQ -qO- | sed -n "/fmt_url_map/{s/[\'\"\|]/\n/g;p}" | sed -n '/^fmt_url_map/,/videoplayback/p' | sed -e :a -e '$q;N;5,$D;ba' | tr -d '\n' | sed -e 's/\(.*\),\(.\)\{1,3\}/\1/' | wget -i - -O surprise.flv

به جای:

http://www.youtube.com/watch?v=dQw4w9WgXcQ
آدرس ویدئو یوتوب مورد نظر را بنویسید.

Mostafa
January 27th, 2011, 11:45
راه حل راحت تر :

نصب برنامه :


wget https://github.com/rg3/youtube-dl/raw/2010.12.09/youtube-dl --no-check-certificate -P /usr/bin
chmod a+x /usr/bin/youtube-dl



استفاده از برنامه :


youtube-dl --output='%(title)s.%(ext)s' http://www.youtube.com/watch?v=dQw4w9WgXcQ

Metalik
January 29th, 2011, 09:33
Download Entire YouTube Channel - all of a user's videos

$ yt-chanrip() { for i in $(curl -s http://gdata.youtube.com/feeds/api/users/"$1"/uploads | grep -Eo "watch\?v=[^[:space:]\"\'\\]{11}" | uniq); do youtube-dl --title --no-overwrites http://youtube.com/"$i"; done }

create the function then run 'yt-chanrip username' to download that user's entire channel.
uses youtube-dl and the GData API. similar to Download Youtube Playlist | commandlinefu.com (http://www.commandlinefu.com/commands/view/3154/download-youtube-playlist)