Brian Skinner | 15 Sep 2010 00:29
Picon
Favicon

inprop=views from en.wikipedia.org -- page view counts for Wikipedia articles?

Hi,

I'm looking for help using the MediaWiki API to get some page view counts.

I'm able to get page view counts on some sites, such as the wikia muppet site:
   http://muppet.wikia.com//api.php?action=query&prop=info&titles=Beaker&inprop=views

But that's not working on en.wikipedia.org:
  http://en.wikipedia.org/w/api.php?action=query&titles=Health&prop=info&inprop=views

That gives an error message that says: "Unrecognized value for
parameter 'inprop': views".

A few questions:
+ Does that error message happen because Wikipedia is configured with
$wgDisableCounters=true, or am I doing something wrong?
+ Is there some other API that I should look at for getting page counts?
+ Should I ping Henrik about maybe screen-scraping from his
stats.grok.se page traffic stats pages?

Thanks, I appreciate any help you can give me.  I'm doing this work as
part of the Health Speaks effort to translate health information into
more languages, and we want to get a sense of how useful the newly
translated pages turn out to be.

Brian Skinner
Health Speaks, Google.org
http://sitescontent.google.com/healthspeaks/
Q | 15 Sep 2010 03:37
Picon

Re: inprop=views from en.wikipedia.org -- page view counts for Wikipedia articles?


On 9/14/2010 5:29 PM, Brian Skinner wrote:
> Hi,
> 
> I'm able to get page view counts on some sites, such as the wikia muppet site:
> But that's not working on en.wikipedia.org:

Wikia is not Wikimedia (Wikimedia is the foundation that runs Wikipedia,
Wikiquote, Wiktionary, etc)

> 
> That gives an error message that says: "Unrecognized value for
> parameter 'inprop': views".
> A few questions:
> + Does that error message happen because Wikipedia is configured with
> $wgDisableCounters=true, or am I doing something wrong?

Likely.

> + Is there some other API that I should look at for getting page counts?

Not that I know of off hand.

> + Should I ping Henrik about maybe screen-scraping from his
> stats.grok.se page traffic stats pages?

Or use the raw stats linked to at the bottom.
Roan Kattouw | 15 Sep 2010 09:09
Picon

Re: inprop=views from en.wikipedia.org -- page view counts for Wikipedia articles?

2010/9/15 Q <overlordq <at> gmail.com>:
>> That gives an error message that says: "Unrecognized value for
>> parameter 'inprop': views".
>> A few questions:
>> + Does that error message happen because Wikipedia is configured with
>> $wgDisableCounters=true, or am I doing something wrong?
>
> Likely.
>
inprop=views is not valid in core either. Looks like Wikia either
hacked this in themselves or added it using an extension.

Roan Kattouw (Catrope)
Picon

Re: inprop=views from en.wikipedia.org -- page view counts for Wikipedia articles?

+ Should I ping Henrik about maybe screen-scraping from his
stats.grok.se page traffic stats pages?

http://stats.grok.se/about says:

Q: Where does the data come from?
A: Domas Mituzas put together a system to gather access statistics from wikipedia's squid cluster and publishes it here. This site is a mere visualizer of that data.


On Wed, Sep 15, 2010 at 10:09 AM, Roan Kattouw <roan.kattouw <at> gmail.com> wrote:
2010/9/15 Q <overlordq <at> gmail.com>:
>> That gives an error message that says: "Unrecognized value for
>> parameter 'inprop': views".
>> A few questions:
>> + Does that error message happen because Wikipedia is configured with
>> $wgDisableCounters=true, or am I doing something wrong?
>
> Likely.
>
inprop=views is not valid in core either. Looks like Wikia either
hacked this in themselves or added it using an extension.

Roan Kattouw (Catrope)

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api



--
സ്‌നേഹാന്വേഷണങ്ങളോടെ,
സാദിക്ക് ഖാലിദ്
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Brian Skinner | 15 Sep 2010 17:21
Picon
Favicon

Re: inprop=views from en.wikipedia.org -- page view counts for Wikipedia articles?

Thanks for all the info and pointers.  I'll get in touch with Domas and Henrik.

:o) Brian

On Wed, Sep 15, 2010 at 8:08 AM, സാദിക്ക് ഖാലിദ് Sadik Khalid
<sadik.khalid <at> gmail.com> wrote:
>> + Should I ping Henrik about maybe screen-scraping from his
>> stats.grok.se page traffic stats pages?
>
> http://stats.grok.se/about says:
>
> Q: Where does the data come from?
> A: Domas Mituzas put together a system to gather access statistics from
> wikipedia's squid cluster and publishes it here. This site is a mere
> visualizer of that data.
>
> On Wed, Sep 15, 2010 at 10:09 AM, Roan Kattouw <roan.kattouw <at> gmail.com>
> wrote:
>>
>> 2010/9/15 Q <overlordq <at> gmail.com>:
>> >> That gives an error message that says: "Unrecognized value for
>> >> parameter 'inprop': views".
>> >> A few questions:
>> >> + Does that error message happen because Wikipedia is configured with
>> >> $wgDisableCounters=true, or am I doing something wrong?
>> >
>> > Likely.
>> >
>> inprop=views is not valid in core either. Looks like Wikia either
>> hacked this in themselves or added it using an extension.
>>
>> Roan Kattouw (Catrope)
>>
>> _______________________________________________
>> Mediawiki-api mailing list
>> Mediawiki-api <at> lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>
>
> --
> സ്‌നേഹാന്വേഷണങ്ങളോടെ,
> സാദിക്ക് ഖാലിദ്
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api <at> lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Platonides | 15 Sep 2010 23:28
Picon

Re: inprop=views from en.wikipedia.org -- page view counts for Wikipedia articles?

Brian Skinner wrote:
> Thanks for all the info and pointers.  I'll get in touch with Domas and Henrik.
> 
> :o) Brian

No need to bother domas.
Just download from http://dammit.lt/wikistats/

Henrik may provide you already processed data, though.
Brian Skinner | 15 Sep 2010 23:48
Picon
Favicon

Re: inprop=views from en.wikipedia.org -- page view counts for Wikipedia articles?

Yes, the already processed data seems like it would be a better fit
for my use case.  I only need monthly summary data, and only for 3,000
pages, so I don't want to abuse the dammit.lt server by doing a
monthly download of 720 files at about 60M each.

:o) Brian

On Wed, Sep 15, 2010 at 2:28 PM, Platonides <platonides <at> gmail.com> wrote:
> Brian Skinner wrote:
>> Thanks for all the info and pointers.  I'll get in touch with Domas and Henrik.
>>
>> :o) Brian
>
> No need to bother domas.
> Just download from http://dammit.lt/wikistats/
>
> Henrik may provide you already processed data, though.
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api <at> lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
Chad | 16 Sep 2010 23:44
Picon

Re: [Wikitech-l] Attention MediaWiki Hackers!

On Thu, Sep 16, 2010 at 1:40 PM, Aude <aude.wiki <at> gmail.com> wrote:
> Very awesome that no travel is required!  I'm not a hardcore mediawiki
> contributor but would like to be more involved, can work on mapping
> and data capabilites, or on aspects of core code (If you want help
> with something)
>

Of course all developers are welcome! We're going to be tracking
bugs for that weekend using a new keyword in Bugzilla called
"bugsmash."

(That's also a general invitation for people to start targeting some
items for the Hack-A-Ton)

> What help do you need from local DC wikipedians?  Although we are not
> yet a chapter, we could perhaps help with getting a venue (though
> danese probably can handle it too) or other ways of helping organize.
>

I should've reached out to you guys a few weeks ago ;-) The venue
is almost settled--hopefully will have an information to share about
that this evening. I might need a hand the day before (I will be driving
up the 21st) to help me get things organized and ready for everyone's
arrival on the 22nd.

-Chad

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Nicolas Vervelle | 17 Sep 2010 00:52
Picon

Status 504 when trying to login ?

Hi,

Has there been any change in the API very recently (login request) ?
My tool, WikiCleaner [1], stopped working in the last hours : when trying to login, a status 504 (Gateway timeout) is now returned.

Thanks for any help
Nico

[1] http://en.wikipedia.org/wiki/User:NicoV/Wikipedia_Cleaner/Documentation

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Guillaume Paumier | 17 Sep 2010 00:54
Picon
Gravatar

Re: Status 504 when trying to login ?

Hi,

Le vendredi 17 septembre 2010 à 00:52 +0200, Nicolas Vervelle a écrit :
> 
> Has there been any change in the API very recently (login request) ?
> My tool, WikiCleaner [1], stopped working in the last hours : when
> trying to login, a status 504 (Gateway timeout) is now returned.

There are currently some technical issues with the API servers. The
technical team is working on it.

--

-- 
Guillaume Paumier

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Gmane