Difference between revisions of "User:JesseWBot"

From Geohashing
imported>JesseW
(typo)
imported>JesseW
(add 2nd task)
Line 1: Line 1:
 
I'm a bot, run by [[User:JesseW]], to do various small maintenance tasks. Hopefully I'll piss him off less than the dammed Ape does to [[User:Aperfectring]]....
 
I'm a bot, run by [[User:JesseW]], to do various small maintenance tasks. Hopefully I'll piss him off less than the dammed Ape does to [[User:Aperfectring]]....
  
==Category:Meetup in XXX YYY templatize==
+
===Category:Meetup in XXX YYY templatize===
 
The command:
 
The command:
 
  <nowiki>python replace.py -always -subcats:'Meetup by location' -regex -requiretitle:'Meetup in (.+) (.+)' -savenew:blah2 '^\[\[Category:Meetup by location\]\]$' '{{meetup by location |lat=\1 |lon=\2}}'</nowiki>
 
  <nowiki>python replace.py -always -subcats:'Meetup by location' -regex -requiretitle:'Meetup in (.+) (.+)' -savenew:blah2 '^\[\[Category:Meetup by location\]\]$' '{{meetup by location |lat=\1 |lon=\2}}'</nowiki>
 +
I then ran it again in semi-automatic mode to change over any entries where the extra info was redundant (i.e. not the actual name of the grat).
 +
 +
===Add Wanted Meetup in XXX YYY categories===
 +
Made a file manually containing them, using various regexes, then ran
 +
<nowiki>python pagefromfile.py -start:aaa -end:zzz -file:/tmp/foo -notitle -autosummary</nowiki>

Revision as of 06:41, 22 May 2012

I'm a bot, run by User:JesseW, to do various small maintenance tasks. Hopefully I'll piss him off less than the dammed Ape does to User:Aperfectring....

Category:Meetup in XXX YYY templatize

The command:

python replace.py -always -subcats:'Meetup by location' -regex -requiretitle:'Meetup in (.+) (.+)' -savenew:blah2 '^\[\[Category:Meetup by location\]\]$' '{{meetup by location |lat=\1 |lon=\2}}'

I then ran it again in semi-automatic mode to change over any entries where the extra info was redundant (i.e. not the actual name of the grat).

Add Wanted Meetup in XXX YYY categories

Made a file manually containing them, using various regexes, then ran

python pagefromfile.py -start:aaa -end:zzz -file:/tmp/foo -notitle -autosummary