Wikimedia Pageview API client
Project description
Wikimedia Pageview API client
Installation
In order to install system wide on system using sudo you can use:
pip install git+https://github.com/Commonists/pageview-api.git
Examples
Number of view on English Wikipedia of article Paris from November 6th to November 20th 2015
import pageviewapi
pageviewapi.per_article('en.wikipedia', 'Paris', '20151106', '20151120',
access='all-access', agent='all-agents', granularity='daily')
Aggregation: Get a daily pageview count timeseries of all projects for the month of October 2015
import pageviewapi
pageviewapi.aggregate('fr.wikipedia', '2015100100', '2015103100', access='all-access',
agent='all-agents', granularity='daily')
Most viewed articles on French Wikipedia on November 14th, 2015
import pageviewapi
pageviewapi.top('fr.wikipedia', 2015, 11, 14, access='all-access')
Sum (resp. average) of view during last 30 days
import pageviewapi.period
pageviewapi.period.sum_last('fr.wikipedia', 'Paris', last=30,
access='all-access', agent='all-agents')
pageviewapi.period.avg_last('fr.wikipedia', 'Paris', last=30)
Monthly legacy pagecounts (2008 until end of 2016) on a project
import pageviewapi
pageviewapi.legacy_pagecounts('fr.wikipedia', '2010010100', '2011010100', granularity='monthly')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pageviewapi-0.4.0.tar.gz.
File metadata
- Download URL: pageviewapi-0.4.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7275b6d848120e60dccd39b393fd77d914f50f596bbd59bb48d397e6c5190aa3
|
|
| MD5 |
fb2503e12d9c6ba252f4054007751aaf
|
|
| BLAKE2b-256 |
dca7bb1ec2e4f96b24fb15b82fdf6ce799e1f216d537aefa4095e80880944963
|
File details
Details for the file pageviewapi-0.4.0-py2.py3-none-any.whl.
File metadata
- Download URL: pageviewapi-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
317356b7ebe0d63825a2c8e3854cb6108b8e30a0d2a9f27e4e50b8977221914f
|
|
| MD5 |
339726bfea007a473236fee7db5cea7e
|
|
| BLAKE2b-256 |
cba48f15019042bc57132d7c9036a6610878c1b64f3723cba6ae07125a137d45
|