将站点地图从 django 更新到 google webmaster 不起作用

发布于 2024-09-25 12:03:55 字数 1366 浏览 9 评论 0原文

我们的网站几乎每天都会更新。每次添加新页面时,我们都需要向谷歌网站管理员更新站点地图。

我们尝试过使用 ping_google() 以及所需的参数集和 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() 之外,还有其他方法可以更新网站管理员的站点地图吗

Our website gets updated almost everyday. We need to update the sitemap to the google webmasters every time there are new pages added.

We have tried using ping_google() along with the required set of arguments and google and it never seem to update the sitemap on webmasters. To log the response, we re-wrote the function and logged the response given below:

    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>

The response seem to look fine. But the sitemap never gets updated on webmasters. We are using django 1.1. Is there any alternative to update the sitemap on webmasters other than the ping_google()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

久伴你 2024-10-02 12:03:55

您可以发布站点地图文件的链接吗?

如果您将站点地图中的大多数 URL 的优先级设置为高,谷歌可能会认为这是一种垃圾邮件,并且不会费心下载站点地图。

另请检查站点地图中的更改频率。

如果您的站点地图很好并且内容确实每天都在变化,即使您不 ping 它,谷歌也会自动下载它。

Can you post the link to your sitemaps file.

If you have set priority for most of the URL's in your sitemap high, google might think it's kind of spamming and will not bother to download sitemap.

Also check the change frequency in your sitemap.

If your sitemap is fine and content really changes everyday, google will automatically download it even if you don't ping it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文