[Mediawiki-l] SpecialPage to feed article text to shell script

Tim Doyle tim at greenscourt.com
Sat Feb 18 19:17:32 UTC 2006


You could use the 'raw' view of an article to easily grab the contents of
the page like this:

/index.php?title=your_title&action=raw

I'd just write a quick perl script to do a web query using an URL similar to
the above and feed it to your script.

Tim


-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Michael Steidley
Sent: Saturday, February 18, 2006 1:10 PM
To: mediawiki-l at Wikimedia.org
Subject: [Mediawiki-l] SpecialPage to feed article text to shell script


I have a wiki setup to archive text documents. I've got my importing 
scripts working well but I need a way to export out the raw article text 
and feed it to a shell script. It can be fed to it on standard input or 
saved to a temporary file and the file name passed as an argument. What 
I would eventually like to do is use a template to create a link to the 
special page to easily feed it the page name to be processed. My PHP 
programming experience is a little limited. Could someone help me at 
least get a working framework? Any input would be greatly appreciated.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l




More information about the MediaWiki-l mailing list