Hi James,
I was aware of the first issue, but this is the first time that I can
recall hearing about the second. See
. You may want to ask your
second question in that thread if no one responds to it here.
Good luck,
Pine
(
)
On Mon, Feb 24, 2020 at 12:17 AM James Gardner via Wikitech-l
<wikitech-l(a)lists.wikimedia.org> wrote:
Hi all,
We are a group of undergraduates working on a project using the MediaWiki
API. While working on this project, we ran into a unique issue involving
pageviews. When trying to pull pageview data for a particular page, the
redirects of a page would not be counted along with the original pageviews.
For example, the Hong Kong protests page only has direct views, and not
views from previous titles.
We attempted to use the
wmflabs.org tool, but it only shows data from a
certain date. (Example link:
https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=…
<https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&start=2019-07-01&end=2020-01-25&pages=2019%E2%80%9320_Hong_Kong_protests%7CChina>
)
Then we attempted to use the redirects of a page and using the old page ids
to grab the pageview data, but there was no data returned. When we
attempted to grab data for a page that we knew would have a long past, but
the parameter of "pvipcontinue" did not appear (
https://www.mediawiki.org/w/api.php?action=help&modules=query%2Bpagevie…)ews).
(Example:
https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&format=j…
)
In the end, we are trying to get an accurate count of view for a certain
page no matter the source.
Any guidance or assistance is greatly appreciated.
Thanks,
Jackie, James, Junyi, Kirby
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l