Bugs item #3452925, was opened at 2011-12-06 14:56 Message generated for change (Comment added) made by bewareofdoug You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3452925...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Doug (bewareofdoug) Assigned to: Nobody/Anonymous (nobody) Summary: -titleregex only searches mainspace
Initial Comment: Using the -titleregex parameter to a replace.py on the wikimedia commons only gets me hits in the main (gallery) space not in file/image space where I need it to. setting -namespace:6 does nothing and setting -prefixindex:file 'adds' mainspace content with the word file in front. The same result is obtained when attempting to look in userspace (though I didn't try it with -namespace:). An example is: python replace.py -titleregex:".*Nietzsche.*" foooooooo bar
version.py output: Pywikipedia [http] trunk/pywikipedia (r9787, 2011/12/06, 07:41:04) Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
Comment By: Doug (bewareofdoug)
Date: 2011-12-06 23:20
Message: To clarify, most of the files in http://commons.wikimedia.org/wiki/Category:Nietzsche%27s_Werke or any of its subcats, should have been found, to name just a few hundred - as well as the category itself, I suppose.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3452925...
pywikipedia-bugs@lists.wikimedia.org