在继续执行之前检查配置文件,使用如下命令:
pythonsitemap_gen.py --config=config.xml --testing
当冗余集设置成1的时候,仅仅可以得到脚本程序运行中发生事情的一些概况,如果需要更多的信息,则需要增加冗余水平,下面是例子的输出:
-bash-2.05b$ python sitemap_gen.py --config=config.xml --testing
Reading configuration file: config.xml
Walking DIRECTORY "/home/alowe/www/images/"
Walking DIRECTORY "/home/alowe/www/"
Sorting and normalizing collected URLs.
Writing Sitemap file "/home/alowe/www/sitemap.xml.gz" with 77 URLs
Search engine notification is suppressed.
Count of file extensions on URLs:
5 (no extension)
1 .css
8 .gif
1 .gz
27 .jpg
1 .old
22 .php
3 .py
2 .txt
2 .xml
5 /
Number of errors: 0
Number of warnings: 0
另外:Python脚本程序不能利用除了"config", "testing"和"help"参数之外的其它的参数。使用“config”指令是告诉脚本程序配置文件的名字,使用“testing”指令是在程序运行之前测试脚本的错误。
正如你所看到的,这里没有任何错误和警告。如果接收到错误信息,先更正配置文件然后再测试脚本,当测试到没有错误的时候,则可以删除“testing”指令,运行脚本程序了。
在Google站点图帐户中添加新的站点图
在向站点图帐户中添加新的站点图之前,必须用Google注册一个帐户。一旦注册成功则可以访问站点图的登录主页进行登录。图A是个漂亮而柔和的但是已经完成的页面。我想在你登录成功后演示这个页面。单击“Get started with Google Sitemaps”下面的“continue”按钮,开始运行Google站点图程序。
图A:成功登陆到站点图服务器。
