简体   繁体   English

在C#中进行html解析

[英]html parsing in c#

How can i parse values from the scoreboard of http://www.cricinfo.com/nzvaus2010/engine/current/match/423789.html 我如何从http://www.cricinfo.com/nzvaus2010/engine/current/match/423789.html的计分板上解析值


But how it could be managed? 但是如何管理呢? i am stuck how to fetch data and store it in database 我被困在如何获取数据并将其存储在数据库中

I suggest you start reading, this looks like a good place to start 我建议您开始阅读,这似乎是一个不错的起点

Screen Scraping Tutorial using C# .NET 使用C#.NET的屏幕抓取教程

It won't be easy, looking at the source of the page, it's all dynamic. 查看页面的来源并非易事,这都是动态的。 You're going to have to pull the javascript apart to figure out where it's getting it's data from and use that. 您将不得不将javascript拆开以找出从何处获取数据并使用它。 Conveniently, it's written in jquery. 方便地,它是用jquery编写的。

不确定要尝试获取多少数据,但网站http://www.cricinfo.com/rss/livescores.xml上有RSS提要

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM