Module apesmit :: Class Sitemap
[hide private]
[frames] | no frames]

Class Sitemap

source code

object --+
         |
        Sitemap

Class to manage a sitemap
Instance Methods [hide private]
 
__init__(self, lastmod=None, changefreq=None, priority=None)
Constructor
source code
 
add(self, loc, lastmod=None, changefreq=None, priority=None, escape=True)
Add a new URl.
source code
 
write(self, out)
Write sitemap to out
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, lastmod=None, changefreq=None, priority=None)
(Constructor)

source code 
Constructor
Parameters:
Overrides: object.__init__

add(self, loc, lastmod=None, changefreq=None, priority=None, escape=True)

source code 
Add a new URl. Parameters are the same as in Url.__init__(). If lastmod, changefreq or priority is None the default value is used (see __init__())

write(self, out)

source code 
Write sitemap to out
Parameters:
  • out - file name or anything with a write() method