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.

14 lines
378 B

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. import pysitemap
  2. import datetime
  3. """
  4. Example script
  5. """
  6. if __name__=='__main__':
  7. url = 'http://www.techelec.ru/' # url from to crawl
  8. logfile = 'errlog.log' # path to logfile
  9. oformat = 'xml' # output format
  10. crawl = pysitemap.Crawler(url=url, logfile=logfile, oformat=oformat)
  11. print datetime.datetime.now()
  12. crawl.crawl()
  13. print datetime.datetime.now()