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.

13 lines
380 B

9 years ago
9 years ago
9 years ago
  1. import pysitemap
  2. """
  3. Example script
  4. """
  5. if __name__=='__main__':
  6. url = 'http://www.dksys.ru/' # url from to crawl
  7. logfile = 'errlog.log' # path to logfile
  8. oformat = 'xml' # output format
  9. outputfile = 'sitemap.xml' # path to output file
  10. crawl = pysitemap.Crawler(url=url, logfile=logfile, oformat=oformat, outputfile=outputfile)
  11. crawl.crawl(pool_size=20)