我们的网站几乎每天都在更新。我们需要更新的网站地图,以谷歌站长每次有新的网页添加。
我们已经尝试使用ping_google()以及所需的参数集和谷歌,但它似乎从未更新过网站管理员上的网站地图。为了记录响应,我们重写了函数并记录了下面给出的响应:
2010-10-01 09:00:02,489 DEBUG Sitemap Response: <html><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<head><title>Google Webmaster Tools
-
Sitemap Notification Received</title>
<meta name="robots" content="noindex, noodp">
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-18009-2";
_utcp="/webmasters/";
_uanchor=1;
urchinTracker();
</script></head>
<body><h2>Sitemap Notification Received</h2>
<br>
Your Sitemap has been successfully added to our list of Sitemaps to crawl. If this is the first time you are notifying Google about this Sitemap, please add it via <a href="http://www.google.com/webmasters/tools/">http://www.google.com/webmasters/tools/</a> so you can track its status. Please note that we do not add all submitted URLs to our index, and we cannot make any predictions or guarantees about when or if they will appear.</body></html>反应看起来还不错。但是网站管理员的网站地图永远不会更新。我们使用的是django 1.1。除了ping_google()之外,还有没有其他方法可以更新网站管理员的网站地图
发布于 2010-10-01 16:02:32
你能把链接贴到你的网站地图文件上吗?
如果你为网站地图中的大多数URL设置了高优先级,谷歌可能会认为这是一种垃圾邮件,不会费心下载网站地图。
还要检查网站地图中的更改频率。
如果你的网站地图很好,而且内容每天都在变化,即使你没有ping,谷歌也会自动下载它。
https://stackoverflow.com/questions/3836529
复制相似问题