Page MenuHomePhabricator
Feed Advanced Search

Jun 30 2022

Basilicofresco added a comment to T311556: "exceptinside" exceptions in replace.py are ignored when they overlaps.

Holy cow. You are absolutely right.

Jun 30 2022, 5:52 PM · Pywikibot, Pywikibot-replace.py
Basilicofresco renamed T311556: "exceptinside" exceptions in replace.py are ignored when they overlaps from "exceptinside" exceptions with replace.py are ignored when they overlaps to "exceptinside" exceptions in replace.py are ignored when they overlaps.
Jun 30 2022, 11:01 AM · Pywikibot, Pywikibot-replace.py

Jun 29 2022

Basilicofresco updated subscribers of T311556: "exceptinside" exceptions in replace.py are ignored when they overlaps.
Jun 29 2022, 11:25 AM · Pywikibot, Pywikibot-replace.py

Jun 28 2022

Basilicofresco created T311556: "exceptinside" exceptions in replace.py are ignored when they overlaps.
Jun 28 2022, 10:05 PM · Pywikibot, Pywikibot-replace.py

Apr 14 2022

Basilicofresco added a comment to T306134: XMLDumpPageGenerator is still not working.

Ok, thanks. And keep in mind that speed matters when you have to montly check the ns:0 with hundreds of regexes. Many active bots on Wikipedia, I believe a good part of them, are actually using the dumps. So the efficiency should be as good as possibile... we are talking about days of cpu at 100%. Thanks for understanding!

Apr 14 2022, 4:02 PM · Regression, Pywikibot-pagegenerators.py, Pywikibot-replace.py, Pywikibot
Basilicofresco added a comment to T306134: XMLDumpPageGenerator is still not working.

Well, probably I did not express myself well.
The whole point of using the dump with replace.py is to rapidly filter the xml by replacements in order to speed up the process of replacing something with something else on the whole ns:0. Replace.py used to work in this way since at least 15 years.
At the moment it's just listing any page within the dump even if these pages does not contain the word "meteorite" and it is a problem because in this way the use of a big dumps become pointless. I could do the same without the dump just executing something like

python pwb.py replace.py -start:* -ns:0 -lang:it "meteorite" ""
Apr 14 2022, 2:27 PM · Regression, Pywikibot-pagegenerators.py, Pywikibot-replace.py, Pywikibot
Basilicofresco added a comment to T306134: XMLDumpPageGenerator is still not working.

These articles never contained the word "meteorite".
Moreover "Organo a pompa" is the very first article written in the current itwiki-20220401-pages-articles.xml dump, "Antropologia" is the second one, "Agricoltura" the third one, etc.
The problem is that it is not filtering at all the xml by replacements, it is just listing one by one every single page present in the dump.

Apr 14 2022, 12:08 PM · Regression, Pywikibot-pagegenerators.py, Pywikibot-replace.py, Pywikibot
Basilicofresco added a comment to T306134: XMLDumpPageGenerator is still not working.

None of the skipped page has that word. The point of running replace.py on a dump should be to load only the pages with that word and not just any page.

Apr 14 2022, 6:09 AM · Regression, Pywikibot-pagegenerators.py, Pywikibot-replace.py, Pywikibot

Apr 13 2022

Basilicofresco assigned T306134: XMLDumpPageGenerator is still not working to Xqt.
Apr 13 2022, 8:51 PM · Regression, Pywikibot-pagegenerators.py, Pywikibot-replace.py, Pywikibot
Basilicofresco created T306134: XMLDumpPageGenerator is still not working.
Apr 13 2022, 8:49 PM · Regression, Pywikibot-pagegenerators.py, Pywikibot-replace.py, Pywikibot
Basilicofresco created T306122: Apparently pywikibot.pagegenerators has no attribute XmlDumpPageGenerator.
Apr 13 2022, 6:12 PM · Pywikibot-pagegenerators.py, Pywikibot-replace.py

Sep 24 2017

Basilicofresco added a comment to T142324: Apparently "text-contains" exceptions in user-fixes.py are ignored.

Hi! I tested it again with the latest version and it still doesn't work as expected. The problem now is slightly different: the text-contains exceptions within the user-fixes.py are always treated as non-regex. Other exceptions like inside and title work as regex as expected. I would like to stress that oddly the -regex parameter on the command line is able to solve the problem. Apparently these exceptions are precompiled with the call precompile_exceptions(exceptions, regex, flags) in the main and therefore they are using the CLI regex parameter instead of the flag within user-fixes.py.

Sep 24 2017, 3:01 PM · Patch-For-Review, Pywikibot-replace.py, Pywikibot

Sep 25 2016

Basilicofresco raised the priority of T142324: Apparently "text-contains" exceptions in user-fixes.py are ignored from Medium to High.

Can I triage this as high?
In my opinion it is a sneaky trap for bot operators that can lead to subtle errors around the encyclopedia.

Sep 25 2016, 3:16 PM · Patch-For-Review, Pywikibot-replace.py, Pywikibot

Sep 4 2016

Basilicofresco created T144698: Missing warning for the anti-spam filter error.
Sep 4 2016, 4:37 PM · Pywikibot

Aug 7 2016

Basilicofresco created T142324: Apparently "text-contains" exceptions in user-fixes.py are ignored.
Aug 7 2016, 6:26 AM · Patch-For-Review, Pywikibot-replace.py, Pywikibot

Aug 5 2016

Basilicofresco added a comment to T142155: Bot can't login. keyError in GetCookie.

This morning I had the same problem. I'm running Python 3.5.1 under Win7. Interestingly logging on Commons is working flawlessly.

Aug 5 2016, 1:25 PM · Pywikibot-Announce, MW-1.28-release (WMF-deploy-2016-08-09_(1.28.0-wmf.14)), MW-1.28-release-notes, MW-1.28-release (WMF-deploy-2016-08-02_(1.28.0-wmf.13)), Pywikibot
Basilicofresco triaged T142155: Bot can't login. keyError in GetCookie as High priority.
Aug 5 2016, 1:00 PM · Pywikibot-Announce, MW-1.28-release (WMF-deploy-2016-08-09_(1.28.0-wmf.14)), MW-1.28-release-notes, MW-1.28-release (WMF-deploy-2016-08-02_(1.28.0-wmf.13)), Pywikibot