LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2014, 01:45 PM   #1
february
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Download files from the web


Hello All,

This link https://uofi.app.box.com/s/3llh4jf6pza3ifz8n62t contains a button that will download a 1.3Gb file. Now how can I do the same download remotely on to another machine using a console? [i.e. no -X option to use firefox or any GUI]

For example this file can be downloaded as such
wget http://www.ncu.edu.tw/~ncu25352/Uplo...2738561744.pdf

But the same does not work for the first link.

feb
 
Old 02-02-2014, 02:26 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,721

Rep: Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169
Quote:
Originally Posted by february View Post
Hello All,
This link https://uofi.app.box.com/s/3llh4jf6pza3ifz8n62t contains a button that will download a 1.3Gb file. Now how can I do the same download remotely on to another machine using a console? [i.e. no -X option to use firefox or any GUI]

For example this file can be downloaded as such
wget http://www.ncu.edu.tw/~ncu25352/Uplo...2738561744.pdf

But the same does not work for the first link.
Right, and it won't. That button is a javascript/form action button that triggers an event on that page, and is NOT a link to an object. If you can dig through the source (AND that source doesn't require some sort of permission/authentication from that button/form), you can do it.
 
Old 02-02-2014, 04:01 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Use some CLI web client as links, use it in a screen session so you can log out while the download is in progress.
 
Old 02-02-2014, 04:18 PM   #4
february
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
I looked into its source that there was no useful href tag in the html code. I suppose this cannot be done.
 
Old 02-02-2014, 07:11 PM   #5
Syndacate
Member
 
Registered: Aug 2008
Location: Santa Clara, CA
Distribution: Ubuntu, mainly. Too much stuff works out of the box O.o
Posts: 71

Rep: Reputation: 52
Anything can be done without a UI, just a matter of figuring out how - when you click buttons and such on web pages you're just sending data to the server. That data doesn't care in the slightest about a UI. If nothing else it's possible to monitor the traffic going out on your NIC to that site and see exactly what it's sending it. The server on the other end doesn't typically care if it's firefox requesting the data or some tool you just cooked up (though in the event that it does care, you can always pretend to be FF).

Anywho, when you click the button, after the script finishes it points you to the URL to download, which is the source URL in your 'current downloads' section. I'd suggest using that. The hash makes it pretty unreadable but I copied/pasted it below. When I copy/pate that into the URL of any browser it seems to download just fine. I would try snagging that with wget, but I don't have wget on this computer. If that doesn't work you'll have to figure out exactly what the exchange is between your browser and that URL when your browser contacts it...wireshark can help with that if you're stuck.

https://dl.boxcloud.com/bc/2/4a1f779...be8a986ee937a/
 
1 members found this post helpful.
Old 02-02-2014, 07:55 PM   #6
february
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
That did the trick. I got the link from Chrome's recent downloads by starting it on my laptop. Later wget picked that link w/o problem. The file's name is index.html but it is 1.3Gb. Will just rename it later.

Thanks all!
 
Old 02-03-2014, 03:31 AM   #7
Syndacate
Member
 
Registered: Aug 2008
Location: Santa Clara, CA
Distribution: Ubuntu, mainly. Too much stuff works out of the box O.o
Posts: 71

Rep: Reputation: 52
Quote:
Originally Posted by february View Post
That did the trick. I got the link from Chrome's recent downloads by starting it on my laptop. Later wget picked that link w/o problem. The file's name is index.html but it is 1.3Gb. Will just rename it later.

Thanks all!
Glad to hear it .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot download files with web browser jeanlucpicard Linux - Newbie 3 08-28-2013 07:06 PM
download all files from web directory? Cyberman Programming 4 08-04-2009 02:20 AM
download all the files of Version A3(1.0) on the web page powah Programming 8 05-25-2009 11:59 PM
Download all files from a web page chadefa1 Linux - Newbie 2 05-31-2008 08:25 PM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:31 PM.

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