[Pywikipedia-l] page generator for all pages in all namespaces
Tom Hogarty
tom.hogarty at gmail.com
Tue Jul 1 19:11:09 UTC 2008
Hello,
I am interested in iterating over all pages in all namespaces.
The reason is to capitalize all page titles so I can successfully change
$wgCapitalLinks from false to true. Currently my wiki has many pages with
lower-case first letter and changing $wgCapitalLinks to true makes those
inaccessible.
It appears that the AllPagesGenerator works on only one namespace at a time.
The SearchPageGenerator allows multiple namespaces, but it requires a query
to return a limited result set.
My only idea so far is to manually determine the list of namespaces and
iterate over each one with AllPagesGenerator to check every page.
Any help is much appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20080701/d49528ab/attachment-0001.htm
More information about the Pywikipedia-l
mailing list