比较C#中的网页 [英] Compare the webpage in C#

查看:84
本文介绍了比较C#中的网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我需要获取网页中发生的更改.在两分钟内一次.

例如:

http://www.espncricinfo.com/england-v- sri-lanka-2011/engine/current/match/492530.html [

Hi friends,

I need to do fetch the changes happen in web page. in two mins once.

For Example :

http://www.espncricinfo.com/england-v-sri-lanka-2011/engine/current/match/492530.html[^]

This is a page in cricket site. Here every seconds updates happen By score and new commentary fires for each balls bowled.

This type of information i need to fetch.

only new entry and removed entry only.

Thanks in Advance

Vinoth Xavier

推荐答案

问题出在哪里?

Where is your problem?


  1. 从页面中读取项目
  2. 记住当前拥有的项目列表.
  3. 从页面中读取下一个项目列表(新列表)时,请查看哪些项目不是
  4. 在原始列表中浏览并尝试在新列表中查找每个项目.如果不存在,则该项目为已删除项目.

  1. Read the items from the page
  2. Remember the current list of items you have.
  3. When reading the next item list (new list) from the page see which items are not yet in the original list as these are the new ones.
  4. Go through the original list and try to find each item in the new list. If it is not there then that item is a deleted item.



瞧,任务完成了!

-MRB



Voila, mission accomplished!

-MRB


这篇关于比较C#中的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆