.NETGURU
Screen scraping and transforming
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngfreeforall' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Michael A. Michalski (VIP)
I have used the WebClient object to obtain the text of a web page. What I
would like to do is to take the page and obtain only certain link objects
for display.

I am not certain how to do this other than doing basic string manipulation,
which I would like to avoid.

How would I take the results of DownloadData and walk a DOM tree to obtain
the links? Or is there a better method of doing this? I have found a
couple of links that address the use of WebClient but do not go into parsing
the results to obtain a list of only certain objects within the page.

Thanks!

Michael

Reply to this message...
 
    
dave wanta (VIP)
Check out Webservices book by Bill Evjen.
http://www.amazon.com/exec/obidos/tg/detail/-/0764548298/qid=1029621605/sr=8
-2/ref=sr_8_2/104-0312338-7849535?s=books&n=507846

Ch 23 shows you how to turn a web page into a WSDL document, which allows
you to access a HTML page as Object.Name .

Example:
page.MsnQuote will fine the stock quote on one of the msn.com pages.

I think Amazon.com may actually have this posted as a sample chapter in his
book and Bill may be on the webservices list.

Cheers!
Dave
----- Original Message -----
From: "Michael A. Michalski" <Click here to reveal e-mail address>
To: "aspngfreeforall" <Click here to reveal e-mail address>
Sent: Saturday, August 17, 2002 9:13 AM
Subject: [aspngfreeforall] Screen scraping and transforming

[Original message clipped]

Reply to this message...
 
 
System.Net.WebClient
System.Object




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification