On Tue, Aug 4, 2009 at 01:52, Merlijn van Deen <valhallasw@arctus.nl> wrote:
Removing them for copyright reasons sounds like a task for delete.py to
me. Try

delete.py -file:pagelist.txt -summary:"Copyright reasons"

Good suggestion. I tried replace.py because we wanted to keep the history, while we discuss the copyright.


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

Thanks for the help - I hadn't been able to figure that out.

Unfortunately it stalls - I get:

$ python replace.py -cat:"The Transition Handbook" -regex -dotall ".*" "{{TTH removed}}/n/n[[Category:The Transition Handbook]]"
Getting [[Category:The Transition Handbook]]...
Getting 26 pages from appropedia:en...

and then nothing happens. I tried changing various things, with no luck, so I'm just going to do it manually.

Thanks anyway.

Chris



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@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>



_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l



--
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