モバイル検索サイト用の sitemap を設置 2007-10-12-3 [ThisSite][Programming][Chalow] このブログにモバイル検索サイト用の sitemap を設置した。 以下、自分用メモ。 (1) モバイル検索サイト用の sitemap を作成するスクリプトを作った。 入力は cl.itemlist (chalow の検索用ファイル)。 コード: #!/usr/bin/perl # usage: cli2sitemap-mobi.pl cl.itemlist > sitemap-mobi.xml use warnings; use strict; my %hash; while (<>) { $hash{$1} = 1 if (/^<a href=\"(\d+-\d+-\d+-\d+)/); } print << "XML" <?xml version="
![モバイル検索サイト用の sitemap を設置](https://cdn-ak-scissors.b.st-hatena.com/image/square/af37977ee866988286b95e74fff98500a190545c/height=288;version=1;width=512/https%3A%2F%2Fchalow.net%2Fimages%2Ftcl-logo-25.png)