Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: importing html files

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70060] Re: importing html files
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sun, 1 Oct 2006 04:10:41 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <efledp$dfa$1@smc.vnet.net>

hawkmoon269 wrote:
> I'd like to read data from a table on a non-local web page into
> Mathematica.  For the time being it would suffice to just be able to
> read all of the source code of the page in...I know how to use Import
> to do this with a local file, but it's not clear to me how to access a
> non-local file...Help?
> 
> h
> 

See section 1.11.7, "Exchanging Material with the Web," 
http://documents.wolfram.com/mathematica/book/section-1.11.7
(Look at the bottom of the page.)

Now, if you want to get the web page itself to interpret it and extract 
whatever information you need, you can still use Import but set the file 
type to, say, "Text". For example,

page = Import["http://ocw.mit.edu/index.html";, "Text"]

HTH,
Jean-Marc


  • Prev by Date: Re: Defining Solve results as variable
  • Next by Date: Re: Defining Solve results as variable
  • Previous by thread: Re: importing html files
  • Next by thread: Re: importing html files