从Django更新站点地图到Google搜索管理员无效
我们的网站几乎每天都会更新。每次添加新页面时,我们都需要把网站地图更新到谷歌网站管理员工具上。
我们尝试使用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(),有没有其他方法可以更新网站管理员工具上的网站地图?
1 个回答
0
你能把你的网站地图文件的链接发过来吗?
如果你在网站地图里给大多数网址设置了很高的优先级,谷歌可能会觉得这有点像是在刷流量,就不会去下载你的网站地图了。
还要检查一下你的网站地图里的更新频率。
如果你的网站地图没问题,而且内容确实每天都有变化,谷歌会自动下载它,即使你不去提醒它。