Sitemap generator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
399 B

9 years ago
9 years ago
  1. # pysitemap
  2. Sitemap generator
  3. ## installing
  4. pip install sitemap-generator
  5. ## example
  6. import pysitemap
  7. if __name__=='__main__':
  8. url = 'http://www.example.com/' # url from to crawl
  9. logfile = 'errlog.log' # path to logfile
  10. oformat = 'xml' # output format
  11. crawl = pysitemap.Crawler(url=url, logfile=logfile, oformat=oformat)
  12. crawl.crawl()