网页观看(比较网址) [英] Page Watch (Compare URLs)

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

问题描述

朋友们,

我需要做一些新的事情,例如比较URL ex:www.cricinfo.com我需要注意的是该网页中的定期更改.每5分钟或半小时或一小时一次.
但是如果一个小时意味着我需要在这个小时之间进行每一次更改.

在此先感谢
Vinoth

Hi friends,

I need to do new thing like compare URL ex: www.cricinfo.com periodical changes in this web page i need to catch. every 5 min or half hour or one hour once.
but if one hour means i need to get each and every changes happen between this hour.

Thanks in advance
Vinoth

推荐答案

考虑到表达您的要求的一般方式,我应该说这是不可能的.
我为什么要这样说,我该如何证实我的说法?

1.什么构成页面的内容以及在哪里进行更改?
首先看:
页面可以每小时又一天又一天又一天地显示相同的html智慧,但是由于可以通过AJAX动态加载内容,因此真正的内容可以每秒更改一次(更正确:与您可以通过AJAX加载内容并将其呈现为页面).
二看:
我重构CSS CSS和HTML布局,以更好地组织(或混淆)我的页面.现在的内容看上去与以前完全不同,但是作为我热衷的Web程序员,我拥有的重构页面看起来与包含用户可读内容的页面完全相同.现在哪里有零钱?

2.谈论语义而不是结构
因此,在查看读者可访问的内容是什么时,我们还必须查看语义,而不是专注于结构.
首先看:
因此,我更改了内容中的错别字,从而改变了实际的文字,但确实改变了语义.

等.

长话短说,您首先必须确定要跟踪的更改类型,然后考虑这些跟踪方法中的每一种都会带来的可能性和挑战.一旦下定决心,您需要跟踪的内容是什么,或者如果您在指定确切要求方面有困难,请随时给我留下评论.

最好的问候,

-MRB
Considering the general way in which you phrased you requirement I should say this impossible to do.
Why am I saying this and how can I corroborate my statement?

1. What comprises the content of a page and where is the change?
First look:
A page can look the same html wise hour after hour and day by day, but since content can be dynamically loaded via AJAX the true content can change every every second (more correct: as often as you can load stuff via AJAX and render it to the page).
Second look:
I refactor my css javascript and HTML layout to better organize (or obfuscate) my page. The content now looks completely different from what it was before, but as the keen web programmer that I am I have the refactored page look exactly the same as before including the user readable content. Where is the change now?

2. Talking about semantics and not structure
So when looking at what is the reader accessible content we have to also look at the semantic and not concentate on the structure.
First look:
So I''ve changed a typo in my content which changes the actual text, but does it change the semantic.

etc. etc.

To make a long story short you will have to first make up your mind what kind of changes you want to track and then think about the possibilities and challenges that each of these tracking methods will carry. Once you have made up your mind what exactly it is you need to track or if you have difficulties in specifying your exact requirements feel free to leave me a comment.

Best Regards,

-MRB


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

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