Get written data per day on MediaWiki

时间:2016-04-15 11:09:27

标签: mediawiki mediawiki-api mediawiki-extensions

I want to graph how much data is written inside my MediaWiki per day to graph the activity. The exact amount of bytes is not important, I just want to see the relative change per day/month/year.

I only found the Statistics Log extension which is not maintained since 1.15.

Any solution via extension/api/mysql would be great. If I can get the value of the bytes/chars or anything else by any method I can do the rest.

1 个答案:

答案 0 :(得分:1)

不是一个简单的答案。但是你可以开始使用" RecentChanges"表格及相关API:https://www.mediawiki.org/wiki/API:RecentChanges

rc_old_len
This field stores the size, in bytes, of previous revision's text. 

rc_new_len
This field stores the size, in bytes, of the current revision's text.

参考:https://www.mediawiki.org/wiki/Manual:Recentchanges_table#rc_new_len