User Details
- User Since
- Dec 29 2020, 9:25 AM (254 w, 1 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- RedKhan16 [ Global Accounts ]
Jan 16 2021
No problem, not something that I use on a big scale anymore. Accidentally stumbled upon it, thought that you might want to know about it.
@Xqt: Didn't know at the moment that >>> means python CLI
Jan 14 2021
OK, feeling stupid but figure it out now. I had to grant Upload, replace, and move files right on the Special:BotPasswords/Red_Khan_Bot page.
Thanks for help everybody, sorry to bother you.
Sorry, forgot to answer. Yes indeed, I'm using a BotPassword.
https://ageofempires.fandom.com/wiki/Special:BotPasswords/Red_Khan_Bot
Did some experimenting. This sequence works
>>> import pywikibot
>>> site = pywikibot.Site('ageofempires:en')
>>> site.username()
'Red Khan Bot'
>>> site.logged_in()
False
>>> site.isBot(site.username())
TrueIsn't site = pywikibot.Site('ageofempires:en') supposed to log me in?
Jan 13 2021
@JJMC89, thanks for help. It looks like the uploadeditmovefile is needed?
Still, unfortunately, no luck.
https://ageofempires.fandom.com/wiki/Special:ListGroupRights specifically shows that bots do have the 'reupload' right but I'm still getting no reupload in the rights list
Thanks! I'll return to Fandom support then.
['abusefilter-log', 'abusefilter-view', 'applychangetags', 'autoconfirmed', 'autopatrol', 'changetags', 'createpage', 'createtalk', 'edit', 'editsemiprotected', 'edittemplates', 'minoredit', 'move', 'move-categorypages', 'move-rootuserpages', 'move-subpages', 'nominornewtalk', 'purge', 'read', 'skipcaptcha', 'upload', 'writeapi']
Also I can upload files with new names (i.e. not re-uploading) using pywikibot.
Here are all the log entries for this command
Just in case you are wondering - I'm running pywikibot from Windows Subsystem for Linux.
Sorry, forgot about those
Pywikibot: [https] r-pywikibot-core.git (bb333d2, g14032, 2021/01/12, 13:32:59, stable)
Release version: 5.5.0
requests version: 2.22.0
cacerts: /etc/ssl/certs/ca-certificates.crt
certificate test: ok
Python: 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0]
PYWIKIBOT_DIR: Not set
PYWIKIBOT_DIR_PWB:
PYWIKIBOT_NO_USER_CONFIG: Not set
Config base dir: /home/user/pywikibot/core
Usernames for family "ageofempires":
en: Red Khan BotJan 12 2021
Dec 30 2020
@Aklapper, hello!
Is this a feature request to change some code in Pywikibot itself? Or is this a support question if something is possible?
The latter.
Dec 29 2020
@Xqt Sorry, took me some time to figure out how to use the API.
https://ageofempires.fandom.com/wiki/Special:RecentChanges
Name of my bot is Red Khan Bot
