roberto wrote:
> now i'm updating some pages of the wiki manually:
> 
> 1- i have a cron process that generate a text file (html wiki format) 
> from some data acquisition
> 2- i open the text file -> select all -> ^C
> 3- then, i open the wiki article -> edit -> select all -> ^V -> save
> 
> i want to write a program (c, python, php, ...), launched by cron, and
> makes points 2 & 3 (update the database with the new data.

At the moment the API code to do this is not active on Wikipedia, 
because it is very new and not well tested.  It is only active on a 
testing wiki. 

In the meantime, there are libraries that can automate the editing 
process, including pywikipedia (if you prefer python) and Perlwikipedia 
or Mediawiki::Edit (if you prefer perl). The former two you can find by 
searching on google, the latter you can get from

  svn co svn://hemlock.ts.wikimedia.org/cbm/subversion/mediawiki-api

In general, editing is a multistep process. You must first login, then 
get an edit token, then commit the edit.  The libraries take care of
that for you, but can themselves be daunting unless you have some
programming experience. 

 - Carl 

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

Reply via email to