Just to confuse the issue further:
You can already get views statistics from the ordinary API of an ordinary MediaWiki instance (where the $wgDisableCounters is set to false).
For instance, an API call on my wiki could be: http://neuro.compute.dtu.dk/w/api.php?action=query&prop=info&titles=... where the 'counter' field displays the statistics.
On Wikimedia Foundation's MediaWiki instances such as the Wikipedia you won't get the counter, see https://da.wikipedia.org/w/api.php?action=query&prop=info&titles=Amy...
/Finn
On 12/15/2015 04:55 PM, Finn Årup Nielsen wrote:
Is this tool really a MediaWiki utility? As far as I understand the webservice running from http://wikimedia.org/api/rest_v1/metrics/ is independent of the MediaWiki software. Or am I misunderstanding something? The API and the tool are a Wikimedia Foundation project outside the main MediaWiki development (Github mirror: https://github.com/wikimedia/analytics-pageview-api), so the previous name (wmf) was actually better IMHO?
'mwviews' could mislead people to think that it could access view statistics from any MediaWiki instance. This is not that case if I understand correctly. "wmviews" would be a better name. :-)
/Finn
On 12/14/2015 03:32 PM, Dan Andreescu wrote:
I wasn't aware of some conventions that came before me, so I moved the project from milimetric/wmf to mediawiki-utilities/python-mwviews. I promise it'll stay there, sorry for the inconvenience. Updated links:
PyPI: https://pypi.python.org/pypi/mwviews/0.0.2 code: https://github.com/mediawiki-utilities/python-mwviews (PRs still welcome, thanks for the 2 you already helped with!)
On Fri, Dec 11, 2015 at 10:36 PM, Dan Andreescu <dandreescu@wikimedia.org mailto:dandreescu@wikimedia.org> wrote:
Along the same lines as Oliver's great R client [1], I just started work on a python version: PyPI: https://pypi.python.org/pypi/wmf/0.1 code: https://github.com/milimetric/wmf (PRs welcome) And if you're trying to skip past all the setup repository cruft, the meat:
https://github.com/milimetric/wmf/blob/master/wmf/analytics/api/pageviews.py
[1] https://github.com/Ironholds/pageviews
Wiki-research-l mailing list Wiki-research-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wiki-research-l