MathGroup Archive 2009

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

Search the Archive

Re: Problem importing HTML with Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96264] Re: Problem importing HTML with Mathematica
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Tue, 10 Feb 2009 05:53:53 -0500 (EST)
  • References: <gmp0k6$brg$1@smc.vnet.net>

Add the "Source" tag to your Import line to get the source. By default
Mathematica uses the "Plaintext" tag (see ref/format/HTML in v7's
documentation centre):

Import["http://www.atpworldtour.com/5/en/vault/draws.asp?TournamentID=
\
352&TournamentYear=1993", "Source"]

Cheers -- Sjoerd

On Feb 9, 12:30 pm, oil... at gmail.com wrote:
> Hi there,
>
> I had a Mathematica program that, among other things, had to import
> html code from a web site.
>
> Recently they made some changes in the web site and the program is not
> importing properly anymore. Instead of getting the source html code I
> would see with my internet browser I am just getting a simplified
> version of it (with no html syntax at all).
>
> I do not know what may have changed, but as a guess, it seems to me as
> if the web site realized that it is not a proper internet browser the
> one who is connecting and therefore it is sending back a simplified
> version of the page.
>
> As an example, you can just run:
> Import["http://www.atpworldtour.com/5/en/vault/draws.asp?TournamentID=
> \
> 352&TournamentYear=1993"]
>
> Thanks a lot for your support,



  • Prev by Date: Re: Map[] and multiple args function
  • Next by Date: Re: Map[] and multiple args function
  • Previous by thread: Problem importing HTML with Mathematica
  • Next by thread: Re: Problem importing HTML with Mathematica