The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Importing data from the web
Replies: 4   Last Post: Feb 26, 2012 4:23 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 122
Registered: 1/29/05
Re: Importing data from the web
Posted: Feb 26, 2012 4:23 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



data4 = {{"050318", "00111529"}, {"050401", "00113120"}};
ID = data4[[i, 2]];
url = "" <> ID ;
s = Import[url, "Text"];
{i, 1, Length[data4]}

The string join you were attempting did not work. I moved the concatenation
of the url string external to the Import this way if you wish to test if the
url exist before import you can. Somewhere on MathGroup there is code to
test for existence of a URL.


-----Original Message-----
From: maria giovanna dainotti []
Sent: Saturday, February 25, 2012 12:55 AM
Subject: Importing data from the web

Dear Math Group,

I have a problem importing the data from a web page.

data4 = {{"050318", "00111529"}, {"050401", "00113120"}}
ID = data4[[i, 2]];
s = Import["<>ID<>", "Text"];
{i, 1, Length[data4]}]

The error message is

I am really grateful if you could help me

Best regards,

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.