LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > sumeet inani
User Name
Password

Notices


Rate this Entry

downloading videos from youtube via online java websites

Posted 07-25-2013 at 09:59 AM by sumeet inani

I keep a collection of videos available at http://www.youtube.com/show/pavitrar...ag_id=&sort=dd and http://www.youtube.com/show/badeacch...view=8&sort=dd

You can catch the videos from catchvideo.net or keepvid.net
Then I use this script for continuous downloading
Code:
#!/bin/sh
while true
do
	echo 'enter URL (q to quit):'
	read   downloadlink
	if [ "$downloadlink" = "q" ]
	then
		echo quitting
		exit
	fi
	#echo you entered \'"$downloadlink"\'
	prefix=$(echo $downloadlink | sed 's/.*Episode%20\([0-9]\+\)%20.*/\1/')
	echo I guess file name prefix is "$prefix"
	echo we are giving command wget -b \'"$downloadlink"\' -O  "$prefix".flv -o  "$prefix".log
	echo if you agree press y else give other name 
	read yes_new
	if [ "$yes_new" = "y" ]
	then
		echo continuing
	else
		echo plan changed
		prefix="$yes_new"
	fi
# now we will give command 
	wget -b "$downloadlink" -O  "$prefix".flv -o  "$prefix".log
done
NOTE
adjust your bash link (#bang)
I am naming downloaded files , you can put loop if there is no relation between download link & target file
Posted in Uncategorized
Views 1074 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration