On Sun, Jul 30, 2006 at 10:57:09AM +0200, Mario Gzuk wrote:
Hi,
I dont know if this is the right place to ask. So please point me in the
right direction if not.
Is it possible to update an article via an sql-statement? What I want to
do:
I have a script wich collects texts from other sources:
e.g. /proc/cpuinfo or texts from external websites.
And I have an article named: computername
Now I want to update the article "computername" with the text from a
local file via SQL in a bash script (or a php script...).
Is it possible? Or are there some solutions for this problem?
It would be possible, but it would be a pain, you'd have to have major
parts of MediaWiki application logic in your code. You have to take care
of MediaWiki's caches, the link tables, recentchanges, etc.
You should use a bot to interact with the wiki, e.g. pywikipediabot
http://sourceforge.net/projects/pywikipediabot/
Regards,
jens