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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-16-2008, 04:15 AM
|
#1
|
|
Member
Registered: May 2008
Posts: 155
Rep:
|
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!
|
|
|
|
08-16-2008, 04:21 AM
|
#2
|
|
Member
Registered: Mar 2008
Distribution: fedora
Posts: 196
Rep:
|
wget may help you
|
|
|
|
08-16-2008, 06:06 AM
|
#3
|
|
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530
Rep: 
|
or "curl"...
|
|
|
|
08-16-2008, 08:15 AM
|
#4
|
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
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.
|
|
|
|
08-16-2008, 08:37 AM
|
#5
|
|
Senior Member
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Rep:
|
Quote:
Originally Posted by wrapster
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.
|
|
|
|
08-16-2008, 10:28 AM
|
#6
|
|
Member
Registered: May 2008
Posts: 155
Original Poster
Rep:
|
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 
|
|
|
|
08-16-2008, 10:37 AM
|
#7
|
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
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.
|
|
|
|
08-16-2008, 11:56 AM
|
#8
|
|
Member
Registered: May 2008
Posts: 155
Original Poster
Rep:
|
ok ...
I will give it a shot and revert back to give you an update
thanks
|
|
|
|
08-16-2008, 02:36 PM
|
#9
|
|
LQ Newbie
Registered: Aug 2008
Posts: 10
Rep:
|
There's an app called jDownloader that may do what you're looking for, with rapidshare.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:54 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|