Removing them for copyright reasons sounds like a task for delete.py to
me. Try
delete.py -file:pagelist.txt -summary:"Copyright reasons"
using replace.py, try
replace.py -file:pagelist.txt -regex -dotall ".*" ""
For more information, see
http://www.regular-expressions.info/python.html and
delete.py -help
replace.py -help
and/or check your pywikipedia dir for interesting scripts ;)
--Merlijn
On Mon, August 3, 2009 8:00 pm, Chris Watkins wrote:
Is there a way I can use replace.py to replace an
entire page with certain
text? There are pages I need to remove for copyright reasons, and I can
list
them in a file (to call with "-file:pagelist.txt").
I tried using *, for the search text, with and without quotation marks,
but
it didn't work - the command I used was of this form:
$ python replace.py -regex "*" "{{XYZ}}" -file:filelist.txt
Thanks!
--
Chris Watkins
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
identi.ca/appropedia /
twitter.com/appropedia
blogs.appropedia.org
I like this: five.sentenc.es
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l