comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to get the text contant of the webpage,using the IDLnetURL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to get the text contant of the webpage,using the IDLnetURL? [message #55158] Thu, 02 August 2007 18:22
linglimu is currently offline  linglimu
Messages: 7
Registered: December 2006
Junior Member
> Try like this:
>
> IDL> ourl = obj_new('IDLnetURL')
> IDL> content = ourl->get(url='http://www.google.com', /string_array)
> IDL> obj_destroy, ourl
> IDL> print, content
> <html><head>... etc
>
> Mike
> --www.michaelgalloy.com

Mike,
Thanks for your answer.I have used the URL_HOST and URL_PATH to set
the address,Some pages were not accessible.Now the pages all can be
accessed using the method you provided.
Re: How to get the text contant of the webpage,using the IDLnetURL? [message #55173 is a reply to message #55158] Thu, 02 August 2007 08:07 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
linglimu@gmail.com wrote:
> Hi
>
> I have tried to use the IDLnetURL in the IDL6.4 to retrieve the
> text contant.But failed.which can tell me how to retrieve the
> contant ,such as 'http://groups.google.com/group/comp.lang.idl-pvwave/
> post?_done=%2Fgroup%2Fcomp.lang.idl-pvwave%2Ftopics' or 'http://
> www.google.cn/intl/zh-CN/about.html' and so on
>
> thank for your answer!
>

Try like this:

IDL> ourl = obj_new('IDLnetURL')
IDL> content = ourl->get(url='http://www.google.com', /string_array)
IDL> obj_destroy, ourl
IDL> print, content
<html><head>... etc

Mike
--
www.michaelgalloy.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: speed, size, contouring
Next Topic: how to confirm whether the webpage is accessible?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:07:44 PDT 2025

Total time taken to generate the page: 0.00483 seconds