I use mwclient, which, I think, handles maxlag
(
https://fisheye.toolserver.org/changelog/Bryan/mwclient/trunk/errors.py?cs=…).
I'm also looking into using mw-peachy, which
also seems to implement the maxlag parameter
(
http://www.google.com/codesearch?q=maxlag+package:http://mw-peachy\.googlec…)
Am I understanding mwclient's and Peachy's implementation correctly?
Thanks,
-Raymond
On 11/17/10 10:07 AM, Brad Jorsch wrote:
On Wed, Nov 17, 2010 at 05:44:57PM +0300, Max Semenik
wrote:
On 17.11.2010, 16:39 Raymond wrote:
2) How would I know when I'm accessing the
API too quickly or too
often? I read at
http://www.mediawiki.org/wiki/API:Errors_and_warnings
that there is ratelimited error message, but so far, I've not seen that
error myself. If I don't get a ratelimited error, does that mean I'm
doing ok with respect to being a good API citizen.
Rate limits are for editing and
logging in only.
Also, use and handle maxlag=5 on all queries so your bot will
automatically pause when the database servers are overloaded. See
http://www.mediawiki.org/wiki/Manual:Maxlag_parameter