Forum Moderators: goodroi
I tried modyfing the code to fix the breaking changes (print is a function, tabs and indents issues, TRUE is a keyword etc) but gave up after an hour or so.
#Python2
>>> print "Hello World"
#Python3
>>> print("Hello World")
my_var = 0
if my_var > 0:
my_var += 1
print("My variable is more than 0:", my_var) #this will run when my var > 0
print("My variable is zero:", my_var) #this will always run regardless of the value of my var
1. Is there a newer equivalent: a simple command line tool that creates the sitemaps from reading a list of urls? I can't find one anywhere, and all references to the source of google's python script give a 404.
2. Is there any need to do this in this day and age? Sitemaps were deemed to be essential for 'new sites' like 20 years ago but has that need now gone because SEs are more advanced in crawling?
A sitemap tells Google which pages and files you think are important in your siteand helps them find all the pages you would like to have crawled and indexed - but a sitemap does not guarantee they will be crawled or indexed.