Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6220

Re: Import files on accessible URL and save in local machine.

From Armand Tamzarian <mike.honeychurch@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Import files on accessible URL and save in local machine.
Date 2011-11-06 10:57 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j95p6f$m6b$1@smc.vnet.net> (permalink)
References <j930ka$a2j$1@smc.vnet.net>

Show all headers | View raw


On Nov 5, 8:45 pm, Gy Peng <hitphy...@gmail.com> wrote:
> Dear Mathematica friends,
>
> I want to Import some files stored on internet by:
>
> Import["http://url", ...]
>
> This allow me to see the file in the notebook of mathematica. However, what
> I want to do is to download and save the files in local machine. And since
> I have may be hundreds or thousands files need to be download and save. Is
> there any why in Mathematica to do it in a most optimized and fast way?
>
> And can read the file names in a single string in Mathematica like:
>
> { file1, file2, file3, file4, ...}
>
> How could I make a loop in Mathematica to download and save all of them in a same directory in local machine by Mathematica?
>
> I would thank you for all your kind reply and help!!!!

if you want to download a lot of files and store them locally then use
wget

http://www.gnu.org/s/wget/

or curl

http://en.wikipedia.org/wiki/CURL

etc.

Mike

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Import files on accessible URL and save in local machine. Gy Peng <hitphyopt@gmail.com> - 2011-11-05 09:45 +0000
  Re: Import files on accessible URL and save in local machine. Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-11-06 10:57 +0000

csiph-web