[Pywikipedia-l] movepages - removing a suffix from each pagename?

Chris Watkins chriswaterguy at appropedia.org
Mon Feb 16 07:50:27 UTC 2009


I need to move a bunch of pages, removing the last part of the title.

(Detail: I've edited the XML file of imported pages, to add "(from
Wikipedia)" on the end of each article's name. This helps avoid clashes
between articles of the same name in the imported pages and the existing
wiki pages. By leaving the redirects in place, it helps avoid importing each
article more than once, when I import more groups of pages in future.)

Now, I can use a spreadsheet to make up a list of commands, one line for
each page, of the form:

*python movepages.py -from:"foo (from Wikipedia)" -to:"foo"* *
"file:pagelist.txt"*
*
*and that will work...but is there a more efficient way of renaming these
pages?

Thanks!
-- 
Chris Watkins (a.k.a. Chriswaterguy)

Appropedia.org - Sharing knowledge to build rich, sustainable lives.

identi.ca/appropedia / twitter.com/appropedia
blogs.appropedia.org

I like this: five.sentenc.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20090216/c951dce3/attachment.htm 


More information about the Pywikipedia-l mailing list