[Pdbwiki-devel] Dev. list up and running!

Dan Bolser dan.bolser at gmail.com
Fri May 1 08:10:05 EDT 2009

2009/5/1 Jose M. Duarte <jose.m.duarte at gmail.com>:
> Thanks for setting up the list Dan!
> I hope that in the next few days I finally get round to fix the few things
> needed for pdbwiki 1.2. As Henning said it would be nice if the site looks
> more up to date while the review of the paper happens.

That would be great, but it has been running in its current state for
2 years, so I don't think we really need to panic.

For your reference, here are the relevant parts of the '-help' output
of the 'replace.py' function in the pywikipediabot suite:

[dbolser at cricket pywikipedia]$ python replace.py -help

Global arguments available for all bots:

-help             Shows this help text.

-putthrottle:n    Set the minimum time (in seconds) the bot will wait between
-pt:n             saving pages.

-verbose          Have the bot provide additional output that may be useful in
-v                debugging.

This bot will make direct text replacements. It will retrieve information on
which pages might need changes [from] ... a text file, or only
change a single page.

These command line parameters can be used to specify which pages to work on:

-cat              Work on all pages which are in a specific category.
                  Argument can also be given as "-cat:categoryname" or
                  as "-cat:categoryname|fromtitle".

-file             Read a list of pages to treat from the named text file.
                  Page titles in the file must be enclosed with [[brackets]].
                  Argument can also be given as "-file:filename".

-links            Work on all pages that are linked from a certain page.
                  Argument can also be given as "-links:linkingpagetitle".

-start            Specifies that the robot should go alphabetically through
                  all pages on the home wiki, starting at the named page.
                  Argument can also be given as "-start:pagetitle".

-titleregex       Work on titles that match the given regular expression.

-transcludes      Work on all pages that use a certain template.
                  Argument can also be given as "-transcludes:Template:Title".

-usercontribs     Work on all articles that were edited by a certain user :
                  Example : -usercontribs:DumZiBoT

-random           Work on random pages returned by [[Special:Random]].
                  Can also be given as "-random:n" where n is the number
                  of pages to be returned, else 10 pages are returned.

-page             Only edit a specific page.
                  Argument can also be given as "-page:pagetitle". You can
                  give this parameter multiple times to edit multiple pages.

Furthermore, the following command line parameters are supported:

-regex            Make replacements using regular expressions. If this argument
                  isn't given, the bot will make simple text replacements.

-nocase           Use case insensitive regular expressions.

-dotall           Make the dot match any character at all, including a newline.
                  Without this flag, '.' will match anything except a newline.

-multiline        '^' and '$' will now match begin and end of each line.

-summary:XYZ      Set the summary message text for the edit to XYZ, bypassing
                  the predefined message texts with original and replacements

-always           Don't prompt you for each replacement

other:            First argument is the old text, second argument is the new
                  text. If the -regex argument is given, the first argument
                  will be regarded as a regular expression, and the second
                  argument might contain expressions like \1 or \g<name>.


If you want to change templates from the old syntax, e.g. {{msg:Stub}}, to the
new syntax, e.g. {{Stub}}, download an XML dump file (pages-articles) from
http://download.wikimedia.org, then use this command:

    python replace.py -xml -regex "{{msg:(.*?)}}" "{{\1}}"

If you have a dump called foobar.xml and want to fix typos in articles, e.g.
Errror -> Error, use this:

    python replace.py -xml:foobar.xml "Errror" "Error" -namespace:0

This command will change 'referer' to 'referrer', but not in pages which
talk about HTTP, where the typo has become part of the standard:

    python replace.py referer referrer -file:typos.txt -excepttext:HTTP



> Jose
> 2009/5/1 Dan Bolser <dan.bolser at gmail.com>
>> 2009/5/1 Henning Stehr <stehr at molgen.mpg.de>:
>> > Thanks Dan! That means that from now on all our BS is being archived,
>> > right? ;)
>> I always back up my BS, you never know when it becomes gold dust!
>> I set up public archives. It would be good to also change the mail
>> footer, so that anyone stumbling upon the archives can always know
>> that were talking about http://PDBWiki.Org and the associated SVN.
>> Do you think we need to put anything under the 'releases' category of
>> the project website?
>> All the best,
>> Dan.
>> > On Fri, May 1, 2009 at 12:51 AM, Dan Bolser <dan.bolser at gmail.com>
>> > wrote:
>> >> Hi guys!
>> >>
>> >> Looks like the dev. list is up and running!
>> >>
>> >> Since this is an 'open' project, lets switch all development discussion
>> >> here.
>> >>
>> >> I'm looking forward to getting the site updates up and running
>> >> (PDBWiki version 1.1/2?), lets continue to log things on
>> >> http://pdbwiki.org/index.php/Migration (thanks for setting that up
>> >> Jose!).
>> >>
>> >>
>> >> I made you both administrators on this list. Please feel free to
>> >> 'de-op' yourself if you don't want to be bothered with lots of admin
>> >> email - I'm happy to handle that. Given previous experience with the
>> >> Google groups, I have set the list to require subscription before
>> >> automatically accepting posts. Posts by non members are moderated (and
>> >> I set us all as moderators). As above, feel free to de-mod yourselves
>> >> (you should probably do that before you de-op yourself!).
>> >>
>> >> Cheers,
>> >> Dan.
>> >>
>> >> _______________________________________________
>> >> Pdbwiki-devel mailing list
>> >> Pdbwiki-devel at bioinformatics.org
>> >> http://www.bioinformatics.org/mailman/listinfo/pdbwiki-devel
>> >>
>> >
>> > _______________________________________________
>> > Pdbwiki-devel mailing list
>> > Pdbwiki-devel at bioinformatics.org
>> > http://www.bioinformatics.org/mailman/listinfo/pdbwiki-devel
>> >
>> _______________________________________________
>> Pdbwiki-devel mailing list
>> Pdbwiki-devel at bioinformatics.org
>> http://www.bioinformatics.org/mailman/listinfo/pdbwiki-devel

More information about the Pdbwiki-devel mailing list