使用python的PySitemap模块用于自动爬取网站sitemap生成sitemap.xml
python sitemap生成 PySitemap
https://github.com/lvwuwei/PySitemap
If you want custome path for sitemap file you can add --output
option like below
使用方法
python main.py --url="https://www.byy3.com" --output="/root/pystiemap/sitemap.xml"