Happy Monday,
There are strange people who make such links (kindof urlencoded?):
[[Második világháború#Partrasz.C3.A1ll.C3.A1s Szic.C3.ADli.C3.A1ban
.28Huskey hadm.C5.B1velet.29|Huskey hadműveletben]]
So the section title must have been copied from the URL.
Do we have a ready tool to fix these?
--
Bináris
Hello all
>From one of my assignments as a bot operator I have some code which
does template parsing and general text parsing (e.g. Image/File tags).
It is not using regex and thus able to correctly parse nested
templates and other such nasty things. I have written those as library
classes and written tests for them which cover almost all of the code.
I would now really like to contribute that code back to the community.
Would you be interested in adding this code to the pywikibot
framework? If yes, can I send the code to someone for code review or
how do you usually operate?
Greetings
Hannes
PS: wiki userpage is http://en.wikipedia.org/wiki/User:Hannes_R%C3%B6st
Sorry for doubling. Forgot about subject.
Hello, can you help please hot to add/remove spaces in text
For exmaple "J.R.R.Tolkien" should transform to "J. R. R. Tolkien"
I tried to use replace.py and user-fixes.py
(u' \. ', u'\. '),
(u' \..?', u'\. .?'),
(u'.?\..?', u'.?\. .?'),
But that's don't work.
Hope on your help, thanks
--
Кирилл Хохлов/Kirill Khokhlov
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|timestam…
[2] I have a private app, so I added the access information directly
in user-config.py
> 2016-08-30 0:17 GMT+02:00 info <info(a)gno.de>:
>
> > Yes it is recommended to split library parts from split parts. The
> problem
> > might be that nobody knows which script parts are reused by private
> scripts.
> >
>
> We already did such transitions in the past.
> 1. Creating new library.
> 2. Archivebot takes the patterns from new library, but its own classes are
> kept for a time, and write a deprecation message on user's console.
> 3. Half a year or a year transition time before they are removed.
>
I have to admit that I do not see a high priority for deprecation of user script parts [1] whereas I do for the library parts.
This is because imho this is in the scope of the developer and I do not recommend to reuse script parts and refactoring and improving scripts might be unnecessary difficult to keep old code stuff. It is an essential difference between compat and core to have library parts separated from user scripts. We have some scripts to be moved to framework [2] (I guess there are some patches to review).
Anyway there is a RfC when deprecated code could be removed. [3]
[1] https://gerrit.wikimedia.org/r/#/c/221645/
[2] https://phabricator.wikimedia.org/T60942
[3] https://phabricator.wikimedia.org/T106121
Best
xqt
Hi,
this is a compat question.
In archivebot.py there were these functions earlier and now I see they
aren't any more. Where are they, or what is their current name?
I imported archivebot to another script and it stopped.
--
Bináris
Hello, can you help please hot to add/remove spaces in text
For exmaple "J.R.R.Tolkien" should transform to "J. R. R. Tolkien"
I tried to use replace.py and user-fixes.py
(u' \. ', u'\. '),
(u' \..?', u'\. .?'),
(u'.?\..?', u'.?\. .?'),
But that's don't work.
Hope on your help, thanks
--
Кирилл Хохлов
On Tue, Aug 9, 2016 at 5:29 PM, <info(a)gno.de> wrote:
> I propose to give CR+2 access to some new coders like
> - Lokal Profil
> - Dalba
> - Whym
I heartily agree with those nominations.
It would also be useful to add hashar, who probably wont +2 often but
is around a lot and can help when there is a critical problem.
And based on https://github.com/wikimedia/pywikibot-core/graphs/contributors and
https://gerrit.wikimedia.org/r/#/q/owner:%22Sn1per+%253Cgeofbot%2540gmail.c…
, IMO sniper/geofbot has graduated from "GCI participant" to a
consistent "Wikimedia developer" (yay!) and so should also have +2.
--
John Vandenberg