| ||||
lastmod (ISO8601 datestamp format) to identify when content last changed.
示例
如上所述,这是我为www.allinvites.com向Google站点图提交的示例配置文件:
<?xml version="1.0" encoding="UTF-8" ?>
<!--?SITE INFORMATION -->
<site base_url="http://www.allinvites.com/" store_into="/home/alowe/www/sitemap.xml.gz" verbose="1">
?<!--?INPUTS -->
?<directory path="/home/alowe/www/images" url="http://www.allinvites.com/images/" />
?<directory path="/home/alowe/www" url="http://www.allinvites.com/" default_file="index.php" />
?<!--?FILTERS -->
?<!--?Exclude URLs that end with a '~' -->
?<filter action="drop" type="wildcard" pattern="*~" />
?<!--?Exclude URLs within UNIX hidden files or directories -->
?<filter action="drop" type="regexp" pattern="/.[^/]*" />
</site>
在继续执行之前检查配置文件,使用如下命令:
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 DIREC
上一页 [1] [2] [3] [4] [5] [6] 下一页
关键词:策划电子商务辩论台: |
|
载入中…
|