Skip to main content

A Python utility for building sitemaps.

Project description

# sitemap_python
A Python utility for building sitemaps.

## Usage

### Generate sitemap

import datetime
import sitemap.generator as generator

sitemap = generator.Sitemap()
sitemap_xml = sitemap.generate()

sitemap_index = generator.Sitemap(type='sitemapindex')
sitemap_index_xml = sitemap_index.generate()

### Ping search engine
Currently support ping Google and Bing.

import as ping"google", "")
ping.ping_urls("bing", ["")

### Push url to Baidu
Related document available [at here](

import as baidu
bp = baidu.BaiduPush("", "<YOUR_KEY>")

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sitemap_python, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size sitemap_python-0.1.0.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page