This is a port in Python 3 of the code developed by Vladimir Toncar. More information at https://toncar.cz/opensource/sitemap_gen.html. This script crawls a web site ...
We've started by importing xml.etree.cElementTree, a built-in python package for parsing XML. Then we created a function called generate_sitemap(), in which we define XML schema info and the <urlset> ...
・選択した sitemap.xml と選択したフォルダ内の .htmlファイルの更新日時を比較し、<lastmod>を更新。 ・更新日時のみ更新し、sitemap-[処理日時].xml で元xmlファイルのあったフォルダに保存。 にて、「更新の度にちまちま修正したsitemap.xmlを作れば良い自分の ...
※sitemap.xml 送信はGoogleにクロールを促すものですので、必ず Googleがインデックスを保証してくれるものではありません 、念のため。 というわけで、今回は サーチコンソールを使用せずにサイトマップ(sitemap.xml)を送信する方法 をお送りいたしました。