New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sitemap-builder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-builder

Generate sitemaps from programmatically collected URLs

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
1

Sitemap Builder

Generate sitemaps from programmatically collected URLs.

Features

  • Generates an index that points to compressed sitemaps files
  • each generated sitemap won't have more than the allowed amount of 50.000 URLs
  • jinja2 templates

Install

pip install sitemap-builder

Usage

  1. Import
from sitemap import Sitemap
  1. Initialize
sitemap = Sitemap()
  1. Add urls to process them later:
sitemap.add_url("dummy-page")
sitemap.add_url("another-page")
sitemap.add_url("category/foo-bar")
  1. Generate sitemap index and files
sitemap.generate()

Example:

Generated files:

.
├── sitemap.xml
└── sitemaps
    ├── sitemap-0.xml.gz
    ├── sitemap-1.xml.gz
    ├── sitemap-2.xml.gz
	└── sitemap-3.xml.gz

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc