Hi folks, I get some errors while '''reading''' data from Wikidata:
WARNING: Http response status 429
WARNING: Non-JSON response received from server wikidata:wikidata for url
https://www.wikidata.org/w/api.php?sites=rowiki&titles=Transalutanus&action…
The server may be down.
Status code: 429
User agent: Strainubot/parse_monument_article (
https://www.wikidata.org/wiki/User:Strainubot) Pywikibot/11.7.0.dev0
(g20613) Python/3.13.5.final.0 requests/2.34.2
The text message is:
You are making too many requests to the API.
Please follow the best practices at .
If you are unsure how to get the access you need, contact .
request-id: 97a0d2fa-909b-4dbc-a5c9-26490e2d2c84
My understanding [1] was that there are no limits for authenticated robots,
but I seem to be hitting the 200 req/min limit for unauthenticated bot
requests with a compliant User-Agent header.
Is it possible that the requests are seen as unauthenticated?
Thanks,
Strainu
[1] https://www.mediawiki.org/wiki/Wikimedia_APIs/Rate_limits#Limits
I want to access the private checkuser wiki (https://checkuser.wikimedia.org <https://checkuser.wikimedia.org/>). I am a checkuser, so I can login there.
I got as far as creating a family file using
> pwb generate_family_file 'https://checkuser.wikimedia.org/wiki/Main_Page' cuwiki
I was impressed that it managed to negotiate the 2FA, so good job to whoever implemented that! The problem is, when I execute
site = Site('en', 'cuwiki')
I get:
> ./try.py
> WARNING: API error readapidenied: You need read permission to use this module.
> cuwiki:cuwiki
You should be able to at least get the MainPage without logging in, so I assume I'm just not creating the Site properly, or I messed up creating the Family. I've got:
> """
> This family file was auto-generated by generate_family_file.py script.
>
> Configuration parameters:
> url = https://checkuser.wikimedia.org/wiki/Main_Page
> name = cuwiki
>
> Please do not commit this to the Git repository!
> """
> from pywikibot import family
>
>
> class Family(family.Family): # noqa: D101
>
> name = 'cuwiki'
> langs = {
> 'en': 'checkuser.wikimedia.org',
> 'cuwiki': 'checkuser.wikimedia.org',
> }
>
> def scriptpath(self, code):
> return {
> 'en': '/w',
> 'cuwiki': '/w',
> }[code]
>
> def protocol(self, code):
> return {
> 'en': 'https',
> 'cuwiki': 'https',
> }[code]
>