Hi - how do I restrict the bot to making changes in certain namespaces? I can comment out certain namespaces in the family file, but that doesn't deal with (say) user or user_talk namespaces.
Sorry if that's an obvious question - I thought I saw the answer once, but now can't find it.
On Mon, Aug 11, 2008 at 8:51 PM, Chris Watkins chriswaterguy@appropedia.org wrote:
Hi - how do I restrict the bot to making changes in certain namespaces? I can comment out certain namespaces in the family file, but that doesn't deal with (say) user or user_talk namespaces.
I don't think there's a single solution... Which bot are you using and with what command line options?
On Mon, Aug 11, 2008 at 10:40 PM, Andre Engels andreengels@gmail.comwrote:
On Mon, Aug 11, 2008 at 8:51 PM, Chris Watkins chriswaterguy@appropedia.org wrote:
Hi - how do I restrict the bot to making changes in certain namespaces? I can comment out certain namespaces in the family file, but that doesn't
deal
with (say) user or user_talk namespaces.
I don't think there's a single solution... Which bot are you using and with what command line options?
Not exactly sure what you mean by bot... I'm using Pywikipedia, but I guess bot would refer to "replace.py"?
Examples of the commands I'm using are:
python replace.py -regex "(?s)appropriate technology(.*$)" "[[appropriate technology]]\1" -xml:currentdump.xml -exceptinsidetag:link -exceptinsidetag:hyperlink -exceptinsidetag:header
and
python redirect.py double -always
Thanks, Chris
-- André Engels, andreengels@gmail.com _______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Chris Watkins pisze:
Hi - how do I restrict the bot to making changes in certain namespaces? I can comment out certain namespaces in the family file, but that doesn't deal with (say) user or user_talk namespaces.
Sorry if that's an obvious question - I thought I saw the answer once, but now can't find it.
-namespace:xxx restricts the bot to xxx namespace. I you want it to look for articles in this namespace use -start:xxx:! for example
masti
Thanks Masti,
I just found this at http://meta.wikimedia.org/wiki/Replace.py: -namespace:n Number of namespace to process. The parameter can be used multiple times. It works in combination with all other parameters except for the -start parameter. (If you want to change all pages in a particular namespace, add the namespace prefix; for example, -start:User:!.)
So I left a note at http://meta.wikimedia.org/wiki/Talk:Pywikipediabot_general_parameters
I get the impression that the longer lists of parameters at Copyright.py and Replace.py also have a lot of general parameters. if so, they could be added here. (Took me ages to find an explanation of the "start:" parameter, and the use of "namespace:", so a more complete page general parameters would be great.)
I would have done some work myself, but I don't understand which are general and which are not.
Thanks again. I have to say, this is the most helpful tech list I've been on.
Chris
On Tue, Aug 12, 2008 at 1:40 AM, masti mst@warszawa.pl.eu.org wrote:
Chris Watkins pisze:
Hi - how do I restrict the bot to making changes in certain namespaces? I can comment out certain namespaces in the family file, but that doesn't deal with (say) user or user_talk namespaces.
Sorry if that's an obvious question - I thought I saw the answer once, but now can't find it.
-namespace:xxx restricts the bot to xxx namespace. I you want it to look for articles in this namespace use -start:xxx:! for example
masti
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I'm having trouble specifying the main space - * "-namespace:main" *and* -namespace:main *lead to the error:
Unknown namespace: main"
Using *-namespace:0* seems to have no effect - I get pages from various namespaces, not just main space.
Thanks again, Chris
On Tue, Aug 12, 2008 at 2:37 AM, Chris Watkins <chriswaterguy@appropedia.org
wrote:
Thanks Masti,
I just found this at http://meta.wikimedia.org/wiki/Replace.py: -namespace:n Number of namespace to process. The parameter can be used multiple times. It works in combination with all other parameters except for the -start parameter. (If you want to change all pages in a particular namespace, add the namespace prefix; for example, -start:User:!.)
So I left a note at http://meta.wikimedia.org/wiki/Talk:Pywikipediabot_general_parameters
I get the impression that the longer lists of parameters at Copyright.py and Replace.py also have a lot of general parameters. if so, they could be added here. (Took me ages to find an explanation of the "start:" parameter, and the use of "namespace:", so a more complete page general parameters would be great.)
I would have done some work myself, but I don't understand which are general and which are not.
Thanks again. I have to say, this is the most helpful tech list I've been on.
Chris
On Tue, Aug 12, 2008 at 1:40 AM, masti mst@warszawa.pl.eu.org wrote:
Chris Watkins pisze:
Hi - how do I restrict the bot to making changes in certain namespaces? I can comment out certain namespaces in the family file, but that doesn't deal with (say) user or user_talk namespaces.
Sorry if that's an obvious question - I thought I saw the answer once, but now can't find it.
-namespace:xxx restricts the bot to xxx namespace. I you want it to look for articles in this namespace use -start:xxx:! for example
masti
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most mistaken, and have there given reins to passion, without that proper deliberation and suspense, which can alone secure them from the grossest absurdities. -- David Hume
Problem fixed. I tried again today, and it works fine. (Not sure what happened, but I'm happy.)
On Tue, Aug 12, 2008 at 3:41 AM, Chris Watkins <chriswaterguy@appropedia.org
wrote:
I'm having trouble specifying the main space -
"-namespace:main" *and* -namespace:main *lead to the error:
Unknown namespace: main"
Using *-namespace:0* seems to have no effect - I get pages from various namespaces, not just main space.
Thanks again, Chris
On Tue, Aug 12, 2008 at 2:37 AM, Chris Watkins < chriswaterguy@appropedia.org> wrote:
Thanks Masti,
I just found this at http://meta.wikimedia.org/wiki/Replace.py: -namespace:n Number of namespace to process. The parameter can be used multiple times. It works in combination with all other parameters except for the -start parameter. (If you want to change all pages in a particular namespace, add the namespace prefix; for example, -start:User:!.)
So I left a note at http://meta.wikimedia.org/wiki/Talk:Pywikipediabot_general_parameters
I get the impression that the longer lists of parameters at Copyright.py and Replace.py also have a lot of general parameters. if so, they could be added here. (Took me ages to find an explanation of the "start:" parameter, and the use of "namespace:", so a more complete page general parameters would be great.)
I would have done some work myself, but I don't understand which are general and which are not.
Thanks again. I have to say, this is the most helpful tech list I've been on.
Chris
On Tue, Aug 12, 2008 at 1:40 AM, masti mst@warszawa.pl.eu.org wrote:
Chris Watkins pisze:
Hi - how do I restrict the bot to making changes in certain namespaces? I can comment out certain namespaces in the family file, but that doesn't deal with (say) user or user_talk namespaces.
Sorry if that's an obvious question - I thought I saw the answer once, but now can't find it.
-namespace:xxx restricts the bot to xxx namespace. I you want it to look for articles in this namespace use -start:xxx:! for example
masti
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most mistaken, and have there given reins to passion, without that proper deliberation and suspense, which can alone secure them from the grossest absurdities. -- David Hume
-- Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most mistaken, and have there given reins to passion, without that proper deliberation and suspense, which can alone secure them from the grossest absurdities. -- David Hume