Hi Strainu,
The easiest way to get more debug information is to add -v -v -debug as
parameters (or by passing those to pywikibot.handleArgs()). The logging
layer will then write lots of debug output to logs/<scriptname>-bot.log,
including the exact API queries (is that how you found the URL in your
message, or did you build that manually?). You could first try requesting
only 50 results; the API query should then be successful, and will include
the username (via prop=userinfo).
Finally, you can try clearing your cookies (rename/delete pywikibot.lwp),
and see if logging in again solves the issue.
Merlijn.
On 29 August 2016 at 12:48, Strainu <strainu10(a)gmail.com> wrote:
Hi,
I'm trying to retrieve 500 pages from a wiki at a time using
PreloadingGenerator and I receive the warning "Too many values
supplied for parameter 'pageids': the limit is 50".
I checked by using the query [1] when logged in as a bot and it works
(I do not get the warning), so I suppose the issue is with my
pywikibot.
I tried to make sure I was logged in [2], then ran the code again and
I still get the warning. On the other hand, page updates are done
correctly (with the bot username). The code I use is more or less the
following:
transGen = pagegenerators.ReferringPageGenerator(rowTemplate,
onlyTemplateInclusion=True,
step=1000)
filteredGen = pagegenerators.NamespaceFilterPageGenerator(transGen,
[namespace], site)
pregenerator = pagegenerators.PreloadingGenerator(filteredGen, 500)
Any ideas on how to debug further?
Thanks,
Strainu
[1]
https://commons.wikimedia.org//w/api.php?maxlag=5&rvprop=
ids|flags|timestamp|user|comment|content&prop=revisions|info|categoryinfo&
pageids=632674|763688|814043|816062|840698|868026|879479|
1020977|1056768|1074217|1219768|1264665|1264683|1507646|1805797|1835525|
1951996|1952142|2310566|2310643|2310647|2310653|2310678|2310681|2313054|
2381759|2401007|2419985|2462884|2462934|2462963|2463012|2463066|2474017|
2567407|2665239|2665432|2670996|2689265|2689271|2713525|2830925|2833095|
2833156|2833283|2833590|2833609|2833767|2833792|2834053|2834215|2834279|
2834402|2834640|2834725|2851440|2874161|2874243|2874299|2874560|2874802|
2874853|2876389|2876524|2876581|2877093|2877111|2877233|2881246|2893017|
2901642|2901675|2904685|2920163|2943446|2943576|2945502|2949529|2949914|
2949939|2950033|2950889|2958962|2959555|2959637|2974662|2974710|2975394|
2994445|3227467|3228485|3388856|3389941|3507059|3507075|3507090|3526054|
3529467|3602970|3715716|3715800|3741953|3742796|3775168|3812106|4068709|
4104745|4396238|4469932|4753719|4845213|4863230|4865840|4943619|4945949|
4946156|4946558|4946609|4946638|4946672|4946726|4946747|4946773|4946788|
4946820|4946946|4947059|4947116|4947166|4947216|4948655|4948863|4948911|
4948932|4948956|4948976|4948990|4949015|4949029|4949050|4949062|4949078|
4949127|4950583|4950632|4950735|4950970|4951965|4952547|4952697|4952736|
4952981|4953649|4953670|4953758|4953812|4953839|4955250|4955349|4955362|
4955431|4955759|4956636|4956928|4957074|4957236|4959769|4959928|4962496|
4962523|4962576|4962876|4964543|4965803|4976536|4978219|4980675|4982578|
4983937|4984709|4985841|4987073|4987567|5000445|5012972|5016378|5047671|
5065023|5065457|5067356|5071350|5072747|5073372|5074847|5079406|5733457|
5981206|5988801|5988820|5988859|5992086|5992201|5992473|5993967|6059777|
6242256|6251526|6313046|6321764|6531632|6641050|6834620|6834625|6834627|
6834629|6834632|6834633|6834637|6834644|6834645|6834647|6834653|6834657|
6834661|6834670|6834673|6834681|6834684|6834685|6834687|6834691|6834694|
6834700|6834701|6834734|6834736|6834739|6834742|6834752|6897671|6905658|
7009486|7033219|7038860|7038864|7038867|7038868|7038871|7038874|7107453|
7107479|7147578|7161256|7281817|7375285|7398933|7402220|7442633|7462716|
7470309|7473695|7560431|7573446|7607409|7659363|7715718|7753117|7759721|
7759722|7761150|7784149|7838324|7838399|7843489|7843491|7845308|7845874|
7846393|7852783|7853278|7875327|7875463|7883013|7883138|7883426|7891023|
7895344|7906260|7935982|7936396|7936851|7938666|7997633|7998138|8020429|
8026374|8043345|8043551|8049747|8050144|8076739|8087979|8132472|8147854|
8247492|8256055|8256424|8314017|8314270|8314927|8322758|8350140|8382804|
8390886|8395145|8436056|8448585|8449744|8457580|8457679|8457788|8459284|
8459686|8461210|8461720|8462348|8469124|8469491|8472852|8475804|8476236|
8480638|8480709|8480861|8481680|8490265|8493706|8495076|8495169|8497461|
8509353|8512208|8514435|8524824|8526364|8535113|8535466|8538715|8542026|
8542895|8545345|8545389|8626655|8713123|8713354|8713380|8720882|8744958|
8842530|8843151|8843287|8843315|8843911|8845414|8923815|8938469|9018506|
9032760|9032765|9032768|9038622|9394079|9442278|9450248|9480258|9556645|
9556774|9606059|9607416|9629977|9637232|9688998|9709297|9718154|9733512|
9761218|9761226|9761227|9761235|9761238|9761242|9761249|9761251|9814612|
9860107|10110285|10225496|10306794|10318342|10363901|
10391559|10397538|10437300|10450227|10486093|10566910|
10568987|10569140|10569238|10687462|10826798|10906237|
10949894|11005163|11011177|11033491|11057508|11057647|
11131399|11191128|11195070|11227436|11228532|11318299|
11326427|11386262|11389574|11393548|11397223|11397290|
11605580|11606193|11680711|11708068|11728842|11738048|
11748859|11787526|11787534|11787537|11787541|11787544|
11787556|11787581|11787585|11787600|11787607|11787615|
11787621|11787655|11787660|11787662|11787668|11787679|
11787691|11787695|11787706|11787709|11787715|11787729|
11787735|11787738|11787744|11787747|11787751|11787753|
11787757|11787762|11787769|11787776|11787778|11806196|
11864219|11925308|11929711|11938557|11970170|11995840|
12007704|12031775|12033409|12035427|12035457|12035752|
12036018|12036830|12036948|12041753|12049530|12056544|
12057952|12061088|12069252|12072172|12110967|12138743|
12175553|12180588|12235365|12236532&continue=&meta=
userinfo&indexpageids=&action=query&uiprop=blockinfo|hasmsg
[2] I have a private app, so I added the access information directly
in user-config.py
_______________________________________________
pywikibot mailing list
pywikibot(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot