On Fri, Feb 29, 2008 at 6:46 PM, Ævar Arnfjörð Bjarmason avarab@gmail.com wrote:
I was trying to go over all the pages in the category namespace, I couldn't get -namespace:14 or -namespace:Category, -namespace:Category:'!' or -namespace:Flokkur (this was on iswiki) to work.
I ended up running it as `python interwiki.py -autonomous -skipauto -namespace:14 -continue' with the following hack, this seems to be working but is there a proper way to do this?
Index: interwiki.py
--- interwiki.py (revision 5080) +++ interwiki.py (working copy) @@ -1620,7 +1620,10 @@ except NameError: wikipedia.output(u"Dump file is empty?! Starting at the beginning.") nextPage = "!"
namespace = 0
if namespaces:
namespace = namespaces[0]
else:
namespace = 0 # old generator is used up, create a new one hintlessPageGen =
pagegenerators.CombinedPageGenerator([pagegenerators.TextfilePageGenerator(dumpFileName),\ pagegenerators.AllpagesPageGenerator(nextPage, namespace, includeredirects = False)])
Of course this is also a more general problem of "how do I run the interwiki bot on a given namespace?".