fix parse error
This commit is contained in:
parent
88df737db2
commit
64be0f1770
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -88,11 +88,11 @@ def main():
|
||||||
|
|
||||||
print("Writing to target file...")
|
print("Writing to target file...")
|
||||||
out = open(path, 'w')
|
out = open(path, 'w')
|
||||||
|
out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
|
||||||
out.write("<!--\n")
|
out.write("<!--\n")
|
||||||
out.write("\tSitemap generator by Ben Morgan - www.benrmorgan.com\n")
|
out.write("\tSitemap generator by Ben Morgan - www.benrmorgan.com\n")
|
||||||
out.write("-->\n")
|
out.write("-->\n")
|
||||||
out.write(
|
out.write("<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n")
|
||||||
"<urlset xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">\n")
|
|
||||||
|
|
||||||
sorted_links = dict(sorted(links.items(), key=lambda item: item[1], reverse=True))
|
sorted_links = dict(sorted(links.items(), key=lambda item: item[1], reverse=True))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue