LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2008, 04:15 AM   #1
wrapster
Member
 
Registered: May 2008
Posts: 155

Rep: Reputation: 30
downloading from the terminal itself, is it possible?


Hi all,

I have a very intriguing question to ask.
I am using solaris.
While downloading some movies i had this thought, it goes like this.
Whenever we want to download a file from an url...
We connect to it first then look for the download button and hit it...

Now my question is ,is there a way to open that particular url in the terminal and find out the "download" button and from the terminal itself, click it (or something that does an equivalent of clicking) so that it can start downloading?

Kindly assist!
 
Old 08-16-2008, 04:21 AM   #2
chakka.lokesh
Member
 
Registered: Mar 2008
Distribution: Ubuntu
Posts: 270

Rep: Reputation: 33
wget may help you
 
Old 08-16-2008, 06:06 AM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
or "curl"...
 
Old 08-16-2008, 08:15 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
There are many ways which a download link may appear in a web page.

If it's just a hyperlink which you can mouse-over and see the URL in the status bar, then you can just copy that URL using the "copy link location" in the context menu of your browser, and then use wget or curl to download that link.

However, many download sites don't provide URLs as regular hyperlinks - they sometimes create a button which generates the download link with javascript when the button is pressed. This makes things a lot trickier, and it is so easy to generalise a mechanism to determine the URL to pass to wget/curl.

Sometimes re-direction is used with download links, which can confuse things a little, although I think both wget and curl will happily follow re-directs.
 
Old 08-16-2008, 08:37 AM   #5
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by wrapster View Post
Now my question is ,is there a way to open that particular url in the terminal and find out the "download" button and from the terminal itself, click it (or something that does an equivalent of clicking) so that it can start downloading?
yes. Use "links", "lynx", "elinks" or similar text-based browser.
 
Old 08-16-2008, 10:28 AM   #6
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
ok, here is the deal...
I usually download from Rapidshare.
Now if you've used it ,its pretty obvious that there are many steps involved before the actual download can begin.
now I wanted to know if a script could manage these links and begin downloading.
I am welcome to a back door entry as well
 
Old 08-16-2008, 10:37 AM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Yuk, rapidshare. All horrible javascript crap. I guess it's there to thwart auto-downloading of the type you are trying to achieve. Good luck, but I don't fancy your chances.
 
Old 08-16-2008, 11:56 AM   #8
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
ok ...
I will give it a shot and revert back to give you an update
thanks
 
Old 08-16-2008, 02:36 PM   #9
AVT
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Rep: Reputation: 0
There's an app called jDownloader that may do what you're looking for, with rapidshare.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I resize the terminal window from the command line in the gnome terminal QuIcKSpArK Linux - Newbie 5 04-21-2012 02:04 PM
not screen-blanking in terminal - what sets the idle timeout on monitor for terminal stardotstar Linux - Hardware 2 08-14-2011 05:46 AM
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:32 AM.

Main Menu
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