c4software / python-sitemap

Mini website crawler to make sitemap from a website.
GNU General Public License v3.0
362 stars 110 forks source link

Duplicate entry #32

Closed ghost closed 7 years ago

ghost commented 7 years ago

Script adds the root directory twice to the sitemap, the first entry in the beginning is without ending slash and the second entry at the end is with the ending slash. See: python3 sitemap.py --domain https://www.2globalnomads.info --image --output sitemap.xml Output: <url><loc>https://www.2globalnomads.info</loc><lastmod>2017-08-22T15:28:56+00:00</lastmod> ... <url><loc>https://www.2globalnomads.info/</loc><lastmod>2017-08-22T15:28:56+00:00</lastmod>

c4software commented 7 years ago

Should be fixed in the last version.

ghost commented 7 years ago

Yeah, now it works. Thanks!

ghost commented 7 years ago

I am coding a web interface for your script. Let me know if you want to check it out before I release it.