Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old August 7th, 2007   #1
@vijay@
Just Give Me the Beans!
 
@vijay@'s Avatar
 
Join Date: Jun 2007
Beans: 76
Wink HOW To :download videos from youtube ( new script and GUI 100% working )

Here is a simple script i made to download videos from youtube

before i used to use the script youtube-dl from http://www.arrakis.es/~rggi3/youtube-dl/
but its not working for me anymore (but may be its because im behind proxy server) so i decided to make my own
This is similar to unplug plugin for firefox

IT DEPENDS ON WGET AND ELINKS

This is how it works
1) download the source code of the youtube webpage link using elinks
2) then searches for the link from which the video stream is coming
3) then downloads it

usage of the script:
sudo chmod +x ./download.sh
./download.sh www.youtube.com/_____


the videos will be downloaded in the same directory
--------------------------------------------------------------------------------------------

I MADE A GUI OF THE PROGRAM ALSO ( THIS IS MY FIRST GTK APPLICATION )
im learning how to program in gtk+ at present

u can just add a list of files to the gui and keep it running overnight
U can change the download name (rename)
The files are downloaded to ~/youtube directory

i faced many problem while making the gui , and was unable to solve ; hopefully someone here will solve it
1) unable to make the list view widget scrollable
2) unable to show the progress of the download in the application itself; so used ZENITY to indicate the progress of the download
3) when i click cancel in the ZENITY the process is not quitting

To install the application:
1) extract the tar.gz file
2) cd to the directory
3) sudo chmod +x install.sh
4) sudo ./install.sh


for uninstalling ........ in the same directory
1) sudo chmod +x uninstall.sh
2) sudo ./uninstall.sh

------------------------------------------------------------------------------------------
i have uploaded the source code of the gui also ; U can modify the source and plz post the modified one here ; and explain the probs so that i can also learn about gtk+ and c programming

SCREENSHOTS:uploaded
Attached Images
File Type: png Screenshot-4.png (439.2 KB, 87 views)
File Type: png Screenshot-7.png (599.6 KB, 63 views)
Attached Files
File Type: sh download.sh (197 Bytes, 43 views)
File Type: gz ytdinstaller.tar.gz (667.0 KB, 35 views)
File Type: gz ytdsource.tar.gz (106.7 KB, 16 views)

Last edited by @vijay@; August 8th, 2007 at 07:36 AM..
@vijay@ is offline   Reply With Quote
Old August 8th, 2007   #2
@vijay@
Just Give Me the Beans!
 
@vijay@'s Avatar
 
Join Date: Jun 2007
Beans: 76
Re: HOW To :download videos from youtube ( new script and GUI 100% working )

just added the screenshots
@vijay@ is offline   Reply With Quote
Old August 25th, 2007   #3
sad_iq
Quad Shot of Ubuntu
 
Join Date: Sep 2006
Location: Spain
Beans: 409
Ubuntu 9.10 Karmic Koala
Re: HOW To :download videos from youtube ( new script and GUI 100% working )

The script doesn't work for me Haven't tried the GUI yet!!!
Code:
./download.sh http://youtube.com/watch?v=2BCoZiSbGtY
/home/sadiq/youtube/hello.flv: No such file or directory
A progress bar appears but no progress...after an hour I have to hit cancel.
sad_iq is offline   Reply With Quote
Old August 25th, 2007   #4
matio
First Cup of Ubuntu
 
Join Date: Aug 2007
Beans: 4
Send a message via Skype™ to matio
Re: HOW To :download videos from youtube ( new script and GUI 100% working )

This is a fantastic program! Did you use monodevelop? I can't seem to use GTK# with monodevelop!
__________________
Matio!

Last edited by matio; August 25th, 2007 at 06:05 AM..
matio is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:19 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry