You could also use the script pagefromfile.py from pywikipedia which has e.g.
the following options for already existing articles:

-appendtop      add the text to the top of it
-appendbottom   add the text to the bottom of it

http://meta.wikimedia.org/wiki/Using_the_python_wikipediabot

Gu

Quoting Rich Evans <[email protected]>:

> that's a teriffic solution. thanks!
> 
>  
> ----- Original Message ----
> From: "[email protected]" <[email protected]>
> To: [email protected]
> Sent: Thursday, December 18, 2008 6:45:07 PM
> Subject: Re: [Mediawiki-l] maintinence script to append a new section to a
> page
> 
> >>>>> "RE" == Rich Evans <[email protected]> writes:
> 
> RE> Hey folks, I currently use the "importTextFile.php" maintinence
> RE> script to automate the creation of new articles, but now I would
> RE> like to use it to automate the addition of "new sections" added to
> RE> the bottom of an existing article
> 
> Perhaps use
> $ GET ...title=myarticlename\&action=raw > file
> $ cat newjunk >> file
> And then run importTextFile on file.
> 
> If there might be [[Category:...]] already at the bottom, instead make
> a perl script to insert your addition just before it.
> 
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 
> 
> 
>       
> 
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 





_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to