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,
In one of my scripts, I'm editing a few pages and one of them requires
sysop privileges. Before OAuth, I was able to logout, then login as sysop
and .save() the page (
https://gist.github.com/alkamid/639abbb05ff8e0d2842d0c9dbda1e2d0#file-addla…).
Now I'm trying to implement the same with OAuth. Saving the protected page
works fine, but later in the script, when saving another unprotected page
(L190), I get the following error:
Traceback (most recent call last):
File "/home/adam/wikt/pywikibot/core/pywikibot/page.py", line 1219, in
_save
watch=watch, bot=botflag, **kwargs)
File "/home/adam/wikt/pywikibot/core/pywikibot/site.py", line 1325, in
callee
self.login(False)
File "/home/adam/wikt/pywikibot/core/pywikibot/site.py", line 2077, in
login
'right': self._username[sysop]})
pywikibot.exceptions.NoUsername: Logged in on wiktionary:pl via OAuth as
Alkamid, but expect as AlkamidBot
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "addLang.py", line 197, in <module>
main()
File "addLang.py", line 190, in main
page8.save(summary="Dodanie języka %s" % zjezyka)
File "/home/adam/wikt/pywikibot/core/pywikibot/tools/__init__.py", line
1447, in wrapper
return obj(*__args, **__kw)
File "/home/adam/wikt/pywikibot/core/pywikibot/page.py", line 1208, in
save
cc=apply_cosmetic_changes, quiet=quiet, **kwargs)
File "/home/adam/wikt/pywikibot/core/pywikibot/page.py", line 1234, in
_save
raise pywikibot.OtherPageSaveError(self, err)
pywikibot.exceptions.OtherPageSaveError: Edit to page
[[Moduł:statystyka/dane]] failed:
Logged in on wiktionary:pl via OAuth as Alkamid, but expect as AlkamidBot
<class 'pywikibot.exceptions.OtherPageSaveError'>
CRITICAL: Closing network session.
How to do this properly? My user-config.py:
usernames['wiktionary']['pl'] = u'AlkamidBot'
sysopnames['wiktionary']['pl'] = u'Alkamid'
usernames['commons']['commons'] = 'Alkamid'
authenticate['pl.wiktionary.org'] = ('a', 'b', 'c', 'd') #credentials
deleted
authenticate['pl.wiktionary.org'] = ('e', 'f, 'g', 'h') #credentials deleted
Best wishes
Alkamid
How do I get my nonWMF wiki family into the families that are shipped with
the core build of pywikibot? We are an open education project and there are
already wikis such as "battlestarwiki" or "anarchopedia" wikis shipped along
with the core build...
Thank you for your answer.
Hello!
The Wikimedia Developer Summit
<https://www.mediawiki.org/wiki/Wikimedia_Developer_Summit> is the annual
meeting to push the evolution of MediaWiki and other technologies
supporting the Wikimedia movement. The next edition will be held in San
Francisco on January 9-11, 2017.
We welcome all Wikimedia technical contributors, third party developers,
and users of MediaWiki and the Wikimedia APIs. We specifically want to
increase the participation of volunteer developers and other contributors
dealing with extensions, apps, tools, bots, gadgets, and templates.
Important deadlines:
- Monday, October 24: This is the last day to request travel
sponsorship. Applying takes less than five minutes.
- Monday, October 31: This is the last day to propose an activity. Bring
the topics you care about!
Subscribe to weekly updates: https://www.mediawiki.org/
wiki/Topic:Td5wfd70vptn8eu4
Please feel free to forward this email to anyone who might be interested in
attending!
Thanks,
Srishti
--
Srishti Sethi
ssethi(a)wikimedia.org
Hello,
Does pywikibot in core have any script to remove links to deleted images
locally? Something like CommonsDelinker, but for local use.
I'm undertaking a major cleanup of files at Meta-Wiki, and I'm leaving a
lot of red links which I'd prefer a bot could process.
Thank you for your help.
Best regards, M.