网页上次更新的时间是什么时候? [英] When was a web page last updated?
问题描述
我正在尝试以编程方式获取网页或网站的上次修改日期。该网站可以是静态的或动态的。有问题的网站不是我的网站,这意味着我无法控制它。它可以是新闻网站,博客,静态广告网站......任何东西。
是否可以使用Google Custom Search API或任何其他API执行此操作?
例如:
在谷歌搜索框中输入以下内容 - inurl:http:/ /stackoverflow.com/questions/3189454/how-to-know-when-a-web-page-was-last-updated
我想得到句柄在约会。对于上面的URL,日期与网站上显示的最后更新日期一致 - 2010年7月6日
我看了之前的 SO讨论 [ ^ ]对我没有帮助。
I am trying to programmatically get the last modified date of a webpage or site. The site can be static or dynamic. The site in question is not my site, which means I do not have any control over it. It can be a news site, a blog, a static ad site... anything.
Is it possible to do this using Google Custom Search API or any other API?
For example:
Type the following in the google search box - inurl:http://stackoverflow.com/questions/3189454/how-to-know-when-a-web-page-was-last-updated
I want to get the handle on the date. For the above the URL, the date tallies with the last updated date as seen on the site – Jul 6, 2010
I looked at an earlier SO Discussion[^] that didn't help me.
推荐答案
可能是这个链接解决你的问题。
http://stackoverflow.com/questions/5235351/how-can-you-mine -the-last-modified-for-an-asp-page-based-based-based-on [ ^ ]
may be this link solve your problem.
http://stackoverflow.com/questions/5235351/how-can-you-mine-the-last-modified-date-for-an-asp-net-page-which-is-based-on[^]
你的答案在这里:
使用标志
Your answer is here:
Use flags
这篇关于网页上次更新的时间是什么时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!