Skip to content

andrewpetrochenkov/sitemap42.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

$ [sudo] pip install sitemap42

Examples

from sitemap42 import Sitemap

sitemap = Sitemap()
sitemap.append('https://domain.com/page1', )
sitemap.append('https://domain.com/page2', changefreq='daily', priority=0.5, lastmod=datetime.now())

sitemap.tostring()
sitemap.write('sitemap.xml')
from sitemap42 import Sitemapindex

sitemapindex = Sitemap()
sitemapindex.append('https://domain.com/sitemap1.xml')
sitemapindex.append('https://domain.com/sitemap2.xml', lastmod=datetime.now())

Links

readme42.com

About

sitemap generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages