Наш сайт обновляется почти каждый день.Нам нужно обновлять карту сайта для веб-мастеров Google каждый раз, когда добавляются новые страницы.
Мы пытались использовать 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 ()