Hi. I use the pywikipediabot framework (python) for this. Please ignore if this is too far off topic.
Example pages that are updated using versions of the script below: * http://translatewiki.net/wiki/Translating:Group_statistics * http://translatewiki.net/wiki/Translating:Localization_checks * http://www.mediawiki.org/wiki/Localisation_statistics Hope this helps. Siebrand ---- # Siebrand / 2008-02-09 # should be run as user 'siebrand' because pywikipediabot checks ownership of user-config.py # create basic stats file for groups 'most used', 'core', 'Wikimedia extensions', and 'All extensions' cd /var/www/w/extensions/Translate /usr/bin/nice /usr/bin/php groupStatistics.php --groups=core-mostused,core,ext-0-wikimedia,ext-0-all --skiplanguages=als,be-x-old,crh,de-formal,dk,en-gb,kk,k k-cn,iu,kk-kz,kk-tr,ku,nb,ruq,simple,sr,tg,tp,tt,zh,zh-cn,zh-sg,zh-hk,zh-min -nan,zh-yue > /home/siebrand/export/groupstats.txt # put SVN version of Betawiki in a variable SVN_VERSION=`/usr/bin/svn info /var/www/w |grep "^Revision" |cut -b 11-` # compile Wiki statistics page for pywikipedia bot /bin/echo "Start" > /home/siebrand/export/stats_page /bin/echo "StartTitleTranslating:Group_statisticsStopTitle" >> /home/siebrand/export/stats_page /bin/echo "{{Translating:Group statistics/Header3|r$SVN_VERSION}}" >> /home/siebrand/export/stats_page /usr/bin/tail -n +15 /home/siebrand/export/groupstats.txt >> /home/siebrand/export/stats_page /bin/echo "End" >> /home/siebrand/export/stats_page # upload stats page to Betawiki /usr/bin/python /home/siebrand/i18n/pagefromfile.py -force -summary:"Updating statistics (r$SVN_VERSION)" -notitle -titlestart:StartTitle -titleend:StopTitle -file:/home/siebrand/export/stats_page -start:Start -end:End # house keeping /bin/rm /home/siebrand/export/groupstats.txt /bin/rm /home/siebrand/export/stats_page ---- -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens roberto Verzonden: vrijdag 18 april 2008 16:13 Aan: [email protected] Onderwerp: [Mediawiki-api] cron process with mediawiki-api hi, i'm new in mediawiki 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. i was looking the API manual, i did some test with php, without any results. would i have some primary example to understand the process and continue away? tks in adavance _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
