在 Google 上查看缓存网页的所有副本



我目前正在做一个项目,该项目处理显示来自Google的页面的缓存版本。 但是,它们似乎只显示最近缓存的页面。

例如,我知道我可以使用它:

http://webcache.googleusercontent.com/search?q=cache:stackoverflow.com

但是,如何查看 Google 多年前缓存的其他 stackoverflow.com 缓存副本呢?

您可以使用

archive.org 服务。

您案例中的示例 URL 将https://web.archive.org/web/*/stackoverflow.com 。您将看到包含页面副本的日历链接。

如果您想查看最后的副本,URL将更改一点https://web.archive.org/web/stackoverflow.com

对于类似的任务,我使用 https://cachearchive.com。您不必每次都构建长 URL。

我想出了一个使用缓存页面的Web过滤器的解决方案,这可能会有所帮助

<!DOCTYPE html>
<html>
<title>View Text Only Cached Page</title>
<head>
                <script language="javascript" type="text/javascript">
                    function urlGen(f)
                        {
                            var i1 = "http://webcache.googleusercontent.com/search?q=cache:";
                            var i2 = f.intranet.value;
                            var i3 = "&hl=en&gl=ca&strip=1";
                            var fullURL = i1 + i2 + i3;
                            f.action = i1 + i2 + i3;
                            return i1 + i2 + i3;
                        }
                </script>
</head>
<body>
<div id="row2">
                <!-- Intranet Search -->
                <form action="google.com" onSubmit="window.location.href=urlGen(this)" method="post" style="width:350px">
                <fieldset>
                <legend>View Text-only Cached Page</legend>
                <input type="text" id="intranet" size="45" value="insert link"
                    onFocus="this.value = ''"
                    onBlur="this.value = 'insert link'" / >
            <br>
<div style="width:300px;">
paste or type the address of the webpage you would like to view in a text only cached version and press "Enter".
<br/><br/>
<b>If a result is not found try adding "/" at the end of the submitted address.</b>
</div>
</fieldset>
</form>
</div>
</body>
</html>

最新更新