downloading from the terminal itself, is it possible?
ProgrammingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.