Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Determining a valid URL

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112755] Re: Determining a valid URL
  • From: Simon <simonjtyler at gmail.com>
  • Date: Wed, 29 Sep 2010 04:15:01 -0400 (EDT)
  • References: <i7sekf$pmh$1@smc.vnet.net>

Maybe this thread
http://groups.google.com.au/group/comp.soft-sys.math.mathematica/browse_thread/thread/ecfa0b05cf9e5157/
could be useful?

Simon

On Sep 28, 8:05 pm, Mark Coleman <markspcole... at gmail.com> wrote:
> Greetings,
>
> I am exploring the use of  Mathematica (v7) to import information from web
> sites. One step in my procedure is to validate that a given web
> address is valid. One simple way that seems to work most of the time
> is to use the Import["my url"] command. An invalid web site (e.g.,
> mispelled URL, etc) returns a $Failed. But I've found instances where
> valid web sites also return a $Failed if I issue the Import command
> with no argument. For these sites, Import seems to work if I use
> "Source".
>
> I'm trying to understand this behavior better, so I can write a more
> general URL checker (note: I am seeking to extract "Plaintext" from
> these sites, and using "Plaintext" as the second argument in the
> Import statement also yields a $Failed!)
>
> Best,
>
> Mark



  • Prev by Date: Difficulty with Interpolation / FunctionInterpolation
  • Next by Date: Multiline functions
  • Previous by thread: Determining a valid URL
  • Next by thread: Re: Determining a valid URL