Automatic sitemap generator

34 views
Skip to first unread message

Mikko Ohtamaa

unread,
Oct 31, 2016, 12:44:18 AM10/31/16
to pylons-...@googlegroups.com
Hi,

I have implemented automatic sitemap generator for Pyramid:

https://websauna.org/docs/narrative/misc/sitemap.html#automatic-sitemap-generation

It uses Pyramid introspection API to automatically build Google sitemap.xml for all your routes and traversable endpoints. Traversable endpoints are recursed using Python dict.items() like protocol.

It handles permissions.

This code can be used standalone with Pyramid, but due to maintenance overhead is not provided as a separate package at the moment.

Jonathan Vanasco

unread,
Nov 1, 2016, 4:25:18 PM11/1/16
to pylons-discuss
This sounds neat!  It looks like this creates a sitemap "route" though... If that is the case, I think this could be more useful as a command-line script that generates a static .xml file (which could then be served as a static resource).

I've done a lot of search optimization for large sites, and the biggest source of issues has always been with dynamic sitemaps (many random reasons).  Being able to have a static one, which can also be tracked in version control, has avoided almost every problem I've encountered.
Reply all
Reply to author
Forward
0 new messages