[Pywikipedia-bugs] [Maniphest] [Commented On] T272223: Can't change text with add_text script on a category

2021-01-16 Thread RedKhan16
RedKhan16 added a comment.


  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.
  
  Another detail -  unlike `-except` option `-grepnot` doesn't seem to give any 
output.

TASK DETAIL
  https://phabricator.wikimedia.org/T272223

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, SHEKH, 
Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, 
joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, 
Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Created] T272223: Can't change text with add_text script on a category

2021-01-16 Thread RedKhan16
RedKhan16 created this task.
RedKhan16 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  I run basically the same command that is given in the manual 
<https://www.mediawiki.org/wiki/Manual:Pywikibot/add_text.py#Example> and get 
an error
  
python3 pwb.py add_text -always -cat:"Unit dialogue (Age of Empires II)" 
-text:"{{Fairuse}}" -except:"\{\{([Tt]emplate:|)[Ff]airuse" -up
WARNING: /usr/lib/python3/dist-packages/apport/report.py:13: 
DeprecationWarning: the imp module is deprecated in favour of importlib; see 
the module's documentation for alternative uses
  import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat

Traceback (most recent call last):
  File "pwb.py", line 363, in 
if not main():
  File "pwb.py", line 355, in main
run_python_file(filename,
  File "pwb.py", line 74, in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
  File "./scripts/add_text.py", line 349, in 
main()
  File "./scripts/add_text.py", line 312, in main
new_arg = ''.join('-grepnot', sep, value)
TypeError: join() takes exactly one argument (3 given)
CRITICAL: Exiting due to uncaught exception 
  
  `pwb version` output
  
Pywikibot: [https] r-pywikibot-core.git (3f38f7b, g14033, 2021/01/14, 
17:17:07, 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/red_khan/pywikibot/core
Usernames for family "ageofempires":
en: Red Khan Bot
  
  I'm running Ubuntu on Windows Subsystem for Linux
  
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 20.04.1 LTS
Release:20.04
Codename:   focal
  
  But exactly the same command used to work some time ago.

TASK DETAIL
  https://phabricator.wikimedia.org/T272223

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, SHEKH, Dijkstra, 
Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T270904: Edits done by Pywikibot are not flagged as made by bot

2021-01-16 Thread RedKhan16
RedKhan16 added a comment.


  @Xqt: Didn't know at the moment that `>>>` means python CLI
  
>>> import pywikibot
>>> site = pywikibot.Site('ageofempires:en')
>>> site.sitename
'ageofempires:en'
>>> info = site.userinfo
>>> info['name']
'Red Khan Bot'
>>> info['groups']
['bot', '*', 'user', 'autoconfirmed']
  
  Had to run `python3 pwb.py login` otherwise it won't show me as logged in.

TASK DETAIL
  https://phabricator.wikimedia.org/T270904

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Xqt, Amire80, Bugreporter, Aklapper, pywikibot-bugs-list, RedKhan16, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Operator should be warned if he has not sufficient rights to reupload existing files with upload script

2021-01-14 Thread RedKhan16
RedKhan16 added a comment.


  OK, feeling stupid but figure it out now. You need to grant `Upload, replace, 
and move files` right on the `Special:BotPasswords/Red_Khan_Bot` page.
  Thanks for help everybody, sorry to bother you.

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: JJMC89, Multichill, Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, apaskulin, Pavithraes, 
Viztor, Wenyi, Cpaulf30, Ivana_Isadora, Tbscho, MayS, Mdupont, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, Dinoguy1000, jayvdb, Masti, Alchimista, 
Rxy, Jay8g
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Operator should be warned if he has not sufficient rights to reupload existing files with upload script

2021-01-14 Thread RedKhan16
RedKhan16 added a comment.


  In T271871#6745425 <https://phabricator.wikimedia.org/T271871#6745425>, 
@JJMC89 wrote:
  
  > Are you using a BotPassword?
  
  Sorry, forgot to answer. Yes indeed, I'm using a BotPassword.

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: JJMC89, Multichill, Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, apaskulin, Pavithraes, 
Viztor, Wenyi, Cpaulf30, Ivana_Isadora, Tbscho, MayS, Mdupont, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, Dinoguy1000, jayvdb, Masti, Alchimista, 
Rxy, Jay8g
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Operator should be warned if he has not sufficient rights to reupload existing files with upload script

2021-01-14 Thread RedKhan16
RedKhan16 added a comment.


  Did some experimenting. This sequence works
  
>>> import pywikibot
>>> site = pywikibot.Site('ageofempires:en')
>>> sorted(site.userinfo['rights'])
['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']
>>> site.logged_in()
True
>>> site.isBot(site.username())
True

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: JJMC89, Multichill, Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, apaskulin, Pavithraes, 
Viztor, Wenyi, Cpaulf30, Ivana_Isadora, Tbscho, MayS, Mdupont, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, Dinoguy1000, jayvdb, Masti, Alchimista, 
Rxy, Jay8g
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Operator should be warned if he has not sufficient rights to reupload existing files with upload script

2021-01-14 Thread RedKhan16
RedKhan16 added a comment.


>>> import pywikibot
>>> site = pywikibot.Site('ageofempires:en')
>>> site.username()
'Red Khan Bot'
>>> site.logged_in()
False
>>> site.isBot(site.username())
True
  
  Isn't `site = pywikibot.Site('ageofempires:en')` supposed to log me in?

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: JJMC89, Multichill, Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, apaskulin, Pavithraes, 
Viztor, Wenyi, Cpaulf30, Ivana_Isadora, Tbscho, MayS, Mdupont, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, Dinoguy1000, jayvdb, Masti, Alchimista, 
Rxy, Jay8g
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Operator should be warned if he has not sufficient rights to reupload existing files with upload script

2021-01-13 Thread RedKhan16
RedKhan16 added a comment.


  @JJMC89, thanks for help. It looks like the `uploadeditmovefile` is needed?

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: JJMC89, Multichill, Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, apaskulin, Pavithraes, 
Viztor, Wenyi, Cpaulf30, Ivana_Isadora, Tbscho, MayS, Mdupont, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, Dinoguy1000, jayvdb, Masti, Alchimista, 
Rxy, Jay8g
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Operator should be warned if he has not sufficient rights to reupload existing files with upload script

2021-01-13 Thread RedKhan16
RedKhan16 added a comment.


  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
  
['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']
  
  `>>> sorted(site.userinfo['groups'])` returns this
  `['*', 'autoconfirmed', 'bot', 'user']`

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Multichill, Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, apaskulin, Pavithraes, Viztor, Wenyi, 
Cpaulf30, Ivana_Isadora, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, Dinoguy1000, jayvdb, Masti, Alchimista, Rxy, Jay8g
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Operator should be warned if he has not sufficient rights to reupload existing files with upload script

2021-01-13 Thread RedKhan16
RedKhan16 added a comment.


  Thanks! I'll return to Fandom support then.

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Multichill, Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, apaskulin, Pavithraes, Viztor, Wenyi, 
Cpaulf30, Ivana_Isadora, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, Dinoguy1000, jayvdb, Masti, Alchimista, Rxy, Jay8g
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Can't reupload existing files with upload script

2021-01-13 Thread RedKhan16
RedKhan16 added a comment.


['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']

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Multichill, Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Can't reupload existing files with upload script

2021-01-13 Thread RedKhan16
RedKhan16 added a comment.


  Here is all the log entries file for this command
  F33997715: upload-bot.log <https://phabricator.wikimedia.org/F33997715>
  Just in case you are wondering - I'm running pywikibot from Windows Subsystem 
for Linux.
  
  As for the restrictions made by the site. That's what I initially thought and 
here is their answer:
  
  > From what I am reading from here: 
https://www.mediawiki.org/wiki/API:Upload#Upload_warnings ignore_warnings must 
be set to reupload. I do see, however, that pybot is giving an error in 
reference to ignore_warnings. As far as I am aware, nothing has changed in 
reference to our API that would differ it from core MediaWiki 1.33. If you have 
the latest version of pybot and are ignoring warnings, I would suggest filing a 
bug with pybot here: 
https://phabricator.wikimedia.org/maniphest/task/create/?projects=PHID-PROJ-orw42whe2lepxc7gghdq
 (Or hop on their IRC server for consult/triage/bug reporting: 
https://webchat.freenode.net/?channels=pywikibot)

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Multichill, Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T271871: Can't reupload existing files with upload script

2021-01-13 Thread RedKhan16
RedKhan16 added a comment.


  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 Bot
  
  I used `-ignorewarn` option. The command I'm running is
  `python3 pwb.py upload -v -ignorewarn '/path/to/file/Britons King Move 3 
AoE2.ogg' -descfile:/path/to/file/description.txt`
  
  I also tried `-ignorewarn:exists` and `-ignorewarn:fileexists` with the same 
result.

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Xqt, Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Created] T271871: Can't reupload exisitng files with upload script

2021-01-12 Thread RedKhan16
RedKhan16 created this task.
RedKhan16 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Greetings!
  I'm trying to mass re-upload new versions of existing files to Fandom using 
Pywikibot, but get an error. Here is a part of output from one attempt
  
Uploading file to ageofempires:en...
WARNING: /home/user/pywikibot/core/pywikibot/page/__init__.py:2565: 
FutureWarning: "ignore_warnings" as a boolean and "report_success" is True or 
None is deprecated for 5 years and 4 months; use "report_success=False" or 
define "ignore_warnings" as callable/iterable instead.
return self.site.upload(self, source_filename=filename, source_url=url,

WARNING: API error fileexists-forbidden: A file with this name already 
exists, and cannot be overwritten. If you still want to upload your file, 
please go back and use a new name. 
[[File:Britons_King_Move_3_AoE2.ogg|thumb|center|Britons_King_Move_3_AoE2.ogg]]
API Error: query=
("{'action': ['upload'], 'token': "
"['here_was_token'], 'text': ['New version"
'with higher quality of a dialogue file for a Briton unit in Age of Empires'
"2'], 'filename': ['Britons King Move 3 AoE2.ogg'], 'comment': ['New 
version"
'with higher quality of a dialogue file for a Briton unit in Age of Empires'
"2'], 'assert': ['user'], 'watch': [False], 'ignorewarnings': [True],"
"'maxlag': ['5'], 'format':['json']}")
response=
{'error': {'code': 'fileexists-forbidden', 'info': 'A file with this name 
already exists, and cannot be overwritten. If you still want to upload your 
file, please go back and use a new name. 
[[File:Britons_King_Move_3_AoE2.ogg|thumb|center|Britons_King_Move_3_AoE2.ogg]]',
 'filekey': '181qqtpbrbxc.p9l6p4.47783138.ogx', 'sessionkey': 
'181qqtpbrbxc.p9l6p4.47783138.ogx', 'invalidparameter': 'filename', 'help': 
'See https://ageofempires.fandom.com/api.php for API usage. Subscribe to the 
mediawiki-api-announce mailing list at 
<https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce>; for 
notice of API deprecations and breaking changes.'}}
ERROR: Upload error:
  
  I contacted Fandom support and they pointed out that according to here 
<https://www.mediawiki.org/wiki/API:Upload#Upload_warnings> ignore_warnings 
must be set to reupload.

TASK DETAIL
  https://phabricator.wikimedia.org/T271871

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, SHEKH, Dijkstra, 
Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Edited] T270958: Use upload script with wildcards

2020-12-30 Thread RedKhan16
RedKhan16 updated the task description.

TASK DETAIL
  https://phabricator.wikimedia.org/T270958

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, SHEKH, Dijkstra, 
Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T270958: Use upload script with wildcards

2020-12-30 Thread RedKhan16
RedKhan16 added a comment.


  @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.

TASK DETAIL
  https://phabricator.wikimedia.org/T270958

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, SHEKH, Dijkstra, 
Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Created] T270958: Use upload script with wildcards

2020-12-30 Thread RedKhan16
RedKhan16 created this task.
RedKhan16 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Couldn't find it anywhere in documentation, but is it possible to use upload 
script with wildcards?
  If I use
  `upload /path/to/files/foo*`
  the scripts suggest //all// the full paths of foo* files as a description. 
Something like
  `/path/to/files/foo 1 /path/to/files/foo 2 /path/to/files/foo 3`
  which is, of course, is not what I want. It's the same with the `-summary` 
key.
  
  In case of 
  `upload /path/to/files/foo* -descfile:description.txt`
  I get an error "Both a description and a -descfile were provided. Please 
specify only one of those."
  
  The workaround is to separately put all the `foo*` files to a separate folder 
and use -recursive.
  `upload -recursive /path/with/files -descfile:description.txt`
  works fine, but you have to go through the hassle of copying files to a 
seperate folder.

TASK DETAIL
  https://phabricator.wikimedia.org/T270958

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, SHEKH, Dijkstra, 
Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T270904: Edits done by Pywikibot are not flagged as made by bot

2020-12-29 Thread RedKhan16
RedKhan16 added a comment.


  @Xqt Sorry, took me some time to figure out how to use the API.
  
  Request 
`/api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo%7Cgroups%7Crights%7Chasmsg`
  
  Result
  
{
"batchcomplete": "",
"query": {
"userinfo": {
"id": 47783138,
"name": "Red Khan Bot",
"groups": [
"bot",
"*",
"user"
],
"rights": [
"bot",
"autoconfirmed",
"editsemiprotected",
"nominornewtalk",
"autopatrol",
"suppressredirect",
"apihighlimits",
"writeapi",
"skipcaptcha",
"welcomeexempt",
"createaccount",
"read",
"edit",
"createpage",
"createtalk",
"viewmywatchlist",
"editmywatchlist",
"viewmyprivateinfo",
"editmyprivateinfo",
"editmyoptions",
"createnewwiki",
"insights",
"tagsreport",
"renameuser",
"dumpsondemand",
"portabilitydashboard",
"abusefilter-view",
"abusefilter-log",
"articlecomments",
"geocode",
"move",
"move-subpages",
"move-rootuserpages",
"move-categorypages",
"movefile",
"upload",
"reupload",
"reupload-shared",
"minoredit",
"editmyusercss",
"editmyuserjson",
"editmyuserjs",
"purge",
"sendemail",
"applychangetags",
"changetags",
"createclass",
"torunblocked",
"content-review-test-mode",
"templatedraft",
"upload_by_url",
"wikifeaturesview",
    "edittemplates",
"forums:read",
"opengraph:create",
"polls:vote",
"posts:create",
"posts:edit",
"posts:report",
"posts:vote",
"threads:create",
"threads:edit",
"wall:edit"
]
}
}
}

TASK DETAIL
  https://phabricator.wikimedia.org/T270904

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Xqt, Amire80, Bugreporter, Aklapper, pywikibot-bugs-list, RedKhan16, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T270904: Edits done by Pywikibot are not flagged as made by bot

2020-12-29 Thread RedKhan16
RedKhan16 added a comment.


  In T270904#6713545 <https://phabricator.wikimedia.org/T270904#6713545>, 
@Bugreporter wrote:
  
  > Please link to a specific recent changes.
  
  https://ageofempires.fandom.com/wiki/Special:RecentChanges
  Name of my bot is Red Khan Bot 
<https://ageofempires.fandom.com/wiki/User:Red_Khan_Bot>
  
  > Does your bot account have bot flag?
  
  It does. Fandom staff says so and I'm able to make changes via bot.

TASK DETAIL
  https://phabricator.wikimedia.org/T270904

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Bugreporter, Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Created] T270904: Edits done by Pywikibot are not flagged as made by bot

2020-12-29 Thread RedKhan16
RedKhan16 created this task.
RedKhan16 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  I'm using Pywikibot to batch upload files to Fandom and then chnage their 
categories and add a template using "upload", "category" and "add_text" scripts.
  Everything works fine except one thing - edits done via Pywikibot are not 
marked as done by bot, so they show up on "Recent changes" page even with 
"Human (not bot)" filter on, which leads to flooding this list with edits done 
by me.
  I wrote asking about it to Fandom staff and they replied the following
  
  > we aren't as familiar with that tool - but there's a specific API flag that 
has to be sent as well as us setting the account as a bot.
  >
  > Do you believe you are sending that API flag?
  
  Unfortunately I wasn't able something clear about it, there are some 
mentioning in documentation but that's all. I tried editing `def save` in 
page/__init__.py, setting `botflag: Optional[bool]` to `True`, but to no avail. 
Changing `minor: bool` to `False` works though, edits done by bot are no longer 
flagged as minor.
  
  Is there something that I'm missing or is it a bug?
  
  Output of `verison`
  
Pywikibot: [https] r-pywikibot-core.git (a07ced0, g13923, 2020/12/22, 
14:06:50, stable)
Release version: 5.3.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]

TASK DETAIL
  https://phabricator.wikimedia.org/T270904

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RedKhan16
Cc: Aklapper, pywikibot-bugs-list, RedKhan16, JohnsonLee01, SHEKH, Dijkstra, 
Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs