Description Usage Arguments See Also Examples
This retrieves per-project pageview counts from January 2008 to July 2016. These counts are calculated using the 'legacy' (read: old) model, which overcounts due to its inclusion of web-crawlers and similar automata.
1 2 3 4 5 6 7 8 9 | old_pageviews(
project = "en.wikipedia",
platform = "all",
granularity = "daily",
start = "2013100100",
end = "2015100100",
reformat = TRUE,
...
)
|
project |
the name of the project, structured as |
platform |
The platform the pageviews came from; one or more of "all", "desktop" or "mobile". Set to "all" by default. |
granularity |
the granularity of data to return; do you want hourly, daily or monthly counts? Set to "daily" by default. |
start |
the start |
end |
the end |
reformat |
Whether to reformat the results as a |
... |
further arguments to pass to httr's GET. |
top_articles
for the top articles per project in a given date range,
project_pageviews
for per-project pageviews under the new definition,
and article_pageviews
for per-article pageviews.
1 2 3 4 5 | # Basic call
enwiki_2013_2015_old <- old_pageviews()
# Break it down to hourly
old_enwiki_hourly <- old_pageviews(granularity = "hourly", end = "2013110100")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.