[Pywikipedia-bugs] [Maniphest] [Commented On] T365920: welcome.py script: use "Mediawiki:Newusermessage-signatures" page for RANDOM_SIGN variable instead of different page per project

2024-05-26 Thread Aram
Aram added a comment. @Xqt, That's the question I expected! This is just my answer and it may be better to get the experience of experts. If we’re just talking about adding a welcome message, yes, the extension defeats the script leaving it no chance to welcome users, but the script can

[Pywikipedia-bugs] [Maniphest] [Created] T365920: In pywikibot's welcom.py script use "Mediawiki:Newusermessage-signatures" page for RANDOM_SIGN variable instead of different page per project

2024-05-25 Thread Aram
Aram created this task. Aram added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Huji, Stang, Aklapper. TASK DESCRIPTION Although I wasn't sure about creating this; this is not a request, but a suggestion. In welcome.py <https://gerrit.wikimedia.or

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Aram
Aram added a comment. @Xqt, I don't know how you found out I was using PS, but I must say you're really smart. Now, I got what you got using `""` in `cmd` and escaping using backtick `"`" in `PS`. And thanks for suggesting //template// script, but I was

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Aram
Aram added a comment. Without escaping: PS C:\Pywikibot> python pwb.py -simulate replace -page:ئانیشک -site:wiktionary:ckb -regex "{{wikipedia}}\n?" "" -summary:"Replace test" ERROR: Incomplete command line pattern replacement pair: ['{{w

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Aram
Aram added a comment. @Xqt, I have updated python to the latest version `3.12.3` and tried `-3.12-64` and `-3.10-64` launchers. Both launchers were the same. This is escaping one: PS C:\Pywikibot> python pwb.py -simulate replace -page:ئانیشک -site:wiktionary:ckb -regex "{{w

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-20 Thread Aram
Aram added a comment. Edition: Windows 10 Pro Version: 1909 OS Build: 18363.900 TASK DETAIL https://phabricator.wikimedia.org/T364689 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Aram Cc: Xqt, Aklapper, pywikibot-bugs-list, Aram, mevo

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-20 Thread Aram
Aram added a comment. @Xqt, Sure, I just updated to the latest version: PS C:\Pywikibot> python pwb.py version Pywikibot: [https] r-pywikibot-core.git (385e9d7, g18846, 2024/05/20, 15:05:27, stable) Release version: 9.1.2 packaging version: 24.0 mwparserfromhell vers

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-20 Thread Aram
Aram added a comment. The same thing: python pwb.py -simulate replace -page:ئانیشک -site:wiktionary:ckb -regex "{{wikipedia}}\n?" "" -summary:"Replace test" ERROR: Incomplete command line pattern replacement pair. TASK DETAIL https://phabricato

[Pywikipedia-bugs] [Maniphest] [Reopened] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-20 Thread Aram
Aram reopened this task as "Open". Aram added a comment. @Xqt, Sorry for reopening it. I couldn't reply; I went offline for about one week. However, It looks like you haven't got that error message and it's working for you. But for me, after reseting my Pywikibot, I'm sti

[Pywikipedia-bugs] [Maniphest] [Edited] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-12 Thread Aram
Aram updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T364689 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Aram Cc: Aklapper, pywikibot-bugs-list, Aram, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-12 Thread Aram
Aram added a comment. To avoid wasting your time, there is an alternative. python pwb.py replace -family:wiktionary -lang:ckb -file:"countries.txt" -regex "{{wikipedia}}\n?" "{{subst:void}}" -summary:"بۆت: - {{wikipedia}}؛ بە شێوەیەکی خۆگەڕانە لەلا

[Pywikipedia-bugs] [Maniphest] [Created] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-12 Thread Aram
Aram created this task. Aram added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I just noticed that `replace.py` script of pywikibot can't replace your pattern with null. python pwb.py replace

[Pywikipedia-bugs] [Maniphest] [Commented On] T363163: Support "test.wikidata.org" in pywikibot

2024-04-24 Thread Aram
Aram added a comment. @Xqt, Sorry, I was stupid; at first I added: `usernames['test']['wikidata'] = 'AramBot'` in `user-config.py` file, but I just realized that the format should be like: `usernames['wikidata']['test'] = 'AramBot'`. I made test edit such as this one <ht

[Pywikipedia-bugs] [Maniphest] [Created] T363163: Support "test.wikidata.org" in pywikibot

2024-04-23 Thread Aram
Aram created this task. Aram added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION It is clear we can use https://test.wikipedia.org for testing pywikibot scripts and this is a good support pywikibot provides to save Wikipedia

[Pywikipedia-bugs] [Maniphest] [Commented On] T360808: Pywikibot doesn't read/write the first title while working on a txt file

2024-03-24 Thread Aram
Aram added a comment. > Is there an invisible characater within your text file? Just answering your question. These days I generate my lists using AWB. I checked the list (especially the first title) and no, there wasn't any invisible characters. I don't know why I have the prob

[Pywikipedia-bugs] [Maniphest] [Created] T360808: Pywikibot doesn't read/write the first title while working on a txt file

2024-03-22 Thread Aram
Aram created this task. Aram added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I worked on "replace.py" and I noticed that while we are working on a txt file containing (plaintext) titles (like A, B, C) separat

[Pywikipedia-bugs] [Maniphest] [Commented On] T345033: In the Pywikibot "unusedfiles.py" script, add "template_to_the_image" at the top of the image page, not the bottom of it

2024-02-23 Thread Aram
Aram added a comment. In T345033#9571673 <https://phabricator.wikimedia.org/T345033#9571673>, @Xqt wrote: > Hi @Aram: I removed the `-up` option and made it default as suggested. I didn't found the `immage` → `image` for replacemet within the code. The `-nouserwarning`

[Pywikipedia-bugs] [Maniphest] [Commented On] T345033: In the Pywikibot "unusedfiles.py" script, add "template_to_the_image" at the top of the image page, not the bottom of it

2024-02-22 Thread Aram
Aram added a comment. Sorry, I just found a new problem. I used `-always`. First warning <https://ckb.wikipedia.org/w/index.php?title=%D9%84%DB%8E%D8%AF%D9%88%D8%A7%D9%86%DB%8C_%D8%A8%DB%95%DA%A9%D8%A7%D8%B1%DA%BE%DB%8E%D9%86%DB%95%D8%B1%3ASakura_emad=1195692=1194927> was good, but

[Pywikipedia-bugs] [Maniphest] [Commented On] T345033: In the Pywikibot "unusedfiles.py" script, add "template_to_the_image" at the top of the image page, not the bottom of it

2024-02-22 Thread Aram
Aram added a comment. @Xqt, Special thanks! Technically, it is now working for me as I wanted. But I think we didn't want to create `-up` because almost all these kind of templates should be placed above. However, if you still consider it necessary, then we may need to make &quo

[Pywikipedia-bugs] [Maniphest] [Commented On] T345033: In the Pywikibot "unusedfiles.py" script, add "template_to_the_image" at the top of the image page, not the bottom of it

2024-02-22 Thread Aram
Aram added a comment. @Xqt, Can you please care about this please? This is not difficult. TASK DETAIL https://phabricator.wikimedia.org/T345033 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Aram Cc: Xqt, Aklapper, pywikibot-bugs-list, Aram

[Pywikipedia-bugs] [Maniphest] [Created] T357154: While updating pywikibot-core on toolforge, keep userscripts directory as itself

2024-02-09 Thread Aram
Aram created this task. Aram added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Hi, per this version <https://wikitech.wikimedia.org/w/index.php?title=Help:Toolforge/Running_Pywikibot_scripts_(advanced)=2140

[Pywikipedia-bugs] [Maniphest] [Commented On] T356782: Pywikibot commonscat script can't handle OAuth

2024-02-08 Thread Aram
Aram added a comment. In T356782#9525790 <https://phabricator.wikimedia.org/T356782#9525790>, @Xqt wrote: > Hm, there are several sites in langlinks but it should not have to logged in there. > For a work-around you could use > `usernames['wikipedia']['*'] = 'Aram

[Pywikipedia-bugs] [Maniphest] [Commented On] T356782: Pywikibot commonscat script can't handle OAuth

2024-02-08 Thread Aram
Aram added a comment. @Xqt, No. Every time it asks to add a new project. usernames['wikipedia']['en'] = 'AramBot' usernames['wikipedia']['fa']= 'AramBot' usernames['wikipedia']['id']= 'AramBot' usernames['wikipedia']['am']= 'AramBot' ... TASK DETAIL https

[Pywikipedia-bugs] [Maniphest] [Reopened] T356782: Pywikibot commonscat script can't handle OAuth

2024-02-06 Thread Aram
Aram reopened this task as "Open". Aram added a comment. Sorry for reopening. You were right. My bot wasn't attached to Commons, but after attaching, I still faces these errors. Even I can't understand it; it's weird! ERROR: No username has been defined in your user config

[Pywikipedia-bugs] [Maniphest] [Created] T356782: Pywikibot commonscat script can't handle OAuth

2024-02-06 Thread Aram
Aram created this task. Aram added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION After following https://www.mediawiki.org/wiki/Manual:Pywikibot/OAuth/Wikimedia: On Toolforge, run: tools.arambot@tools-sgebastion-10

[Pywikipedia-bugs] [Maniphest] [Commented On] T351951: category_redirect script of Pywikibot is not working as it's documented

2023-12-14 Thread Aram
Aram added a comment. In T351951#9400287 <https://phabricator.wikimedia.org/T351951#9400287>, @Xqt wrote: > I haven't found any `→` in the code but in the i18n <https://translatewiki.net/wiki/Pywikibot:Category_redirect-log-double/ckb> at translatewiki and this sh

[Pywikipedia-bugs] [Maniphest] [Commented On] T351951: category_redirect script of Pywikibot is not working as it's documented

2023-12-10 Thread Aram
Aram added a comment. @Xqt, Thank you! Much closer to perfect this time. The bot has made some good edits and this is the log revision <https://ckb.wikipedia.org/w/index.php?title=%D8%A8%DB%95%DA%A9%D8%A7%D8%B1%DA%BE%DB%8E%D9%86%DB%95%D8%B1:AramBot/category_redirect_log=prev=1140

[Pywikipedia-bugs] [Maniphest] [Commented On] T351951: category_redirect script of Pywikibot is not working as it's documented

2023-12-08 Thread Aram
Aram added a comment. @Xqt, After updating `scripts/category_redirect.py` with your last edit and running the script, looks like it is now modifying the old categories to new ones as you can see in this edit <https://ckb.wikipedia.org/w/index.php?title=%D8%AA%DB%8C_%D8%AF%DB%8C_%DA%A9%DB

[Pywikipedia-bugs] [Maniphest] [Commented On] T351951: category_redirect script of Pywikibot is not working as it's documented

2023-12-06 Thread Aram
Aram added a comment. In T351951#9387697 <https://phabricator.wikimedia.org/T351951#9387697>, @Xqt wrote: > In T351951#9384705 <https://phabricator.wikimedia.org/T351951#9384705>, @Aram wrote: > >> @Xqt, The code you showed me is correct. I tried updating

[Pywikipedia-bugs] [Maniphest] [Commented On] T351951: category_redirect script of Pywikibot is not working as it's documented

2023-12-05 Thread Aram
Aram added a comment. In T351951#9380567 <https://phabricator.wikimedia.org/T351951#9380567>, @Xqt wrote: > @Aram: Cannot reproduce the i18n issue. After adding print statements I get: > > D:\pwb\GIT\core>pwb -simulate category_redirect -lang:ckb > C

[Pywikipedia-bugs] [Maniphest] [Commented On] T351951: category_redirect script of Pywikibot is not working as it's documented

2023-12-04 Thread Aram
Aram added a comment. > @Aram: Could you please give an example. Sure. If you mean an edit summary sample, I provided this one <https://ckb.wikipedia.org/w/index.php?title=%D9%BE%DB%86%D9%84:%D8%A6%D8%A7%D8%A8%D9%88%D9%88%D8%B1%DB%8C%DB%8C_%D8%A6%D8%A7%D8%B3%DB%8C%D8%A7_%D8%A8%DB

[Pywikipedia-bugs] [Maniphest] [Edited] T352237: delinker.py script of pywikibot can't solve those deleted files comes with no extension

2023-11-28 Thread Aram
Aram updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T352237 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Aram Cc: Aklapper, pywikibot-bugs-list, Aram, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra

[Pywikipedia-bugs] [Maniphest] [Created] T352237: delinker.py script of pywikibot can't solve those deleted files comes with no extension

2023-11-28 Thread Aram
Aram created this task. Aram added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue**: - The doc of the delinker.py <https://doc.wikimedia.org/pywikibot/master/scripts_ref/scripts.html#mod

[Pywikipedia-bugs] [Maniphest] [Created] T351951: category_redirect script of Pywikibot is not working as it's documented

2023-11-25 Thread Aram
Aram created this task. Aram added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION This category_redirect script <https://doc.wikimedia.org/pywikibot/master/scripts_ref/scripts.html#module-scripts.category_redirect> is an a

[Pywikipedia-bugs] [Maniphest] [Created] T348914: Create template list for "Template:Category redirect" in the Pywikibot's "category_redirect.py" script

2023-10-14 Thread Aram
Aram created this task. Aram added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Hi, yesterday I ran Pywikibot's "category_redirect.py" script on ckbwiki, but it didn't work and showed the message `WARNING: No redirect

[Pywikipedia-bugs] [Maniphest] [Commented On] T345033: In the Pywikibot "unusedfiles.py" script, add "template_to_the_image" at the top of the image page, not the bottom of it

2023-08-27 Thread Aram
Aram added a comment. @Xqt, Thank you for your reply! Yes, the additional `-up` option can fix the problem, but it doesn't have to affect the message sent to the uploader's talk page. However, (in my opinion) adding the tag to the top of the image/file pages should be made the default

[Pywikipedia-bugs] [Maniphest] [Created] T345033: In the Pywikibot "unusedfiles.py" script, add "template_to_the_image" at the top of the image page, not the bottom of it

2023-08-26 Thread Aram
Aram created this task. Aram added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Hi, I just noticed that the Pywikibot "unusedfiles.py" script, adds "template_to_the_image" template