MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg122687] Re: Import files on accessible URL and save in local machine.
  • From: Armand Tamzarian <mike.honeychurch at gmail.com>
  • Date: Sun, 6 Nov 2011 05:55:01 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j930ka$a2j$1@smc.vnet.net>

On Nov 5, 8:45 pm, Gy Peng <hitphy... at 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



  • Prev by Date: Re: How to evaluate parts of an expression, but not other parts?
  • Next by Date: Re: Part // interesting undocumented feature
  • Previous by thread: Re: Import files on accessible URL and save in
  • Next by thread: How the GaussianMatrix is calculated in Mathematica?