Solved

Parsing HTML with Visual c# 2005

Posted on 2008-10-22
3
513 Views
Last Modified: 2013-12-17
Hello,
I'm a really visual c# beginner. I've only created simple task programs and a text parser form my servers.
I would like to parse a html web page :
get links from the first page then connect to these links get data, compare with database and if now exist or not changed put the data in database.
Is there an easy (dumb :))  way for visual c# to begin with (a book, web page, msdn for explanations)
Othe possible ways are welcome. (Don't know if I can do it with sql server 2005 analysis service, or other softwares to extract data)
Thank you
0
Comment
Question by:TAI-
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
openshac earned 500 total points
ID: 22774493
The following links might be helpful:

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_23493776.html?sfQueryTermInfo=1+c+screenscrap
http://www.experts-exchange.com/Internet/Web_Development/Q_23417990.html?sfQueryTermInfo=1+c+screenscrap
http://community.screen-scraper.com/Tutorial_4_page_3_Invoking%20screen-scraper%20from%20C%2523.NET

I've written a scrrenscraper before and once you've got the HTML you can easily search for the part of the page you want.  With any luck that part of the page may be in XHTML (i.e. HTML in strict XML format) in which case you can load it into an XML document and parse to your hearts content.  Otherwise you may need to resort to regular expressions to find the parts of the page you are interested in.
0
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22774513
I think this is what you are looking for
http://www.developer.com/net/csharp/article.php/10918_2230091_1
0
 

Author Closing Comment

by:TAI-
ID: 31508663
Thank you for the scraper link.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question