[pywikibot] Re: Parallel gets?

2023-03-28 Thread Roy Smith
Been there, done that. I assume you're talking about Page.imagelinks(). That gets you the images in arbitrary order. I need to get them in the order they're in the wikitext. A given nomination can be approved, dis-appoved, re-approved, etc, as people squabble over the nomination. The last

[pywikibot] Re: Parallel gets?

2023-03-28 Thread John
If you are looking to check for image/file usage it’s better to query the api for just image used images instead of trying to parse wiki text On Tue, Mar 28, 2023 at 10:29 PM Roy Smith wrote: > On Mar 28, 2023, at 9:09 PM, Kunal Mehta wrote: > > I suppose it's also worth asking what you're

[pywikibot] Re: Parallel gets?

2023-03-28 Thread Roy Smith
On Mar 28, 2023, at 9:09 PM, Kunal Mehta wrote: > I suppose it's also worth asking what you're using expand_text() for in the > first place, to see if there's a better way to do whatever it is you want to > :) That's a fair question. What I'm doing is looking at DYK nominations to evaluate

[pywikibot] Re: Parallel gets?

2023-03-28 Thread Kunal Mehta
Hi, On 3/28/23 14:07, Roy Smith wrote: Hmmm.  What I'm doing requires Page.expand_text(), which looks like it does a Page.get() followed by a Site.expand_text(), and it's the later which actually takes most of the time.  That becomes an action=expandtemplates API call

[Pywikibot-commits] [Gerrit] ...core[master]: Add support for ckbwiktionary

2023-03-28 Thread JJMC89 (Code Review)
JJMC89 has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/903828 ) Change subject: Add support for ckbwiktionary .. Add support for ckbwiktionary Bug: T332093 Change-Id:

[Pywikipedia-bugs] [Maniphest] [Created] T333414: pywikibot.textlib.TimeStripper doctest failing due to different offset

2023-03-28 Thread JJMC89
JJMC89 created this task. JJMC89 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION 17:17:31 ___ [doctest] pywikibot.textlib.TimeStripper ___ 17:17:31 1841*group* attribute is a set

[Pywikipedia-bugs] [Maniphest] [Updated] T132919: Stale isbn hyphenation data

2023-03-28 Thread Pppery
Pppery removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T132919 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Pppery Cc: Dvorapa, gerritbot, Xqt, jayvdb, Aklapper, pywikibot-bugs-list, notconfusing, PotsdamLamb,

[Pywikipedia-bugs] [Maniphest] [Updated] T61686: fixing_redirects.py: move treat() to pywikibot/textlib

2023-03-28 Thread Pppery
Pppery edited projects, added Patch-Needs-Improvement; removed Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T61686 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Pppery Cc: XZise, Xqt, gerritbot, jayvdb, valhallasw, Ricordisamoa,

[Pywikipedia-bugs] [Maniphest] [Updated] T78393: Load token types needed for each API module from the API

2023-03-28 Thread Pppery
Pppery edited projects, added Patch-Needs-Improvement; removed Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T78393 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Pppery Cc: gerritbot, jayvdb, XZise, Ricordisamoa, Aklapper,

[pywikibot] OFF: Idle 80

2023-03-28 Thread Bináris
Wikipedia says me that Eric Idle (after whom IDLE is named) is 80 today. Well, on a Pythonic mailing list this may be interesting. :-) -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at

[Pywikipedia-bugs] [Maniphest] [Commented On] T331720: pywikibot does not respond to my calls

2023-03-28 Thread Sakura_emad
Sakura_emad added a comment. **Fixed** thanks. TASK DETAIL https://phabricator.wikimedia.org/T331720 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Sakura_emad Cc: Xqt, matej_suchanek, binbot, TheresNoTime, Aklapper, pywikibot-bugs-list,

[pywikibot] Re: Parallel gets?

2023-03-28 Thread Roy Smith
Without the screenshot this time > On Mar 28, 2023, at 2:01 PM, Roy Smith wrote: > > Hmmm. What I'm doing requires Page.expand_text(), which looks like it does a > Page.get() followed by a Site.expand_text(), and it's the later which > actually takes most of the time. That becomes an

[pywikibot] Re: Parallel gets?

2023-03-28 Thread Kunal Mehta
Hi, On 3/27/23 15:57, Roy Smith wrote: I need to issue a bunch of Page.get() requests in parallel. Please don't. From : "Making your requests in series rather than in parallel, by waiting for one request to finish before sending

[Pywikipedia-bugs] [Maniphest] [Commented On] T328769: Enhance Pywikibot.Page with is_person method

2023-03-28 Thread binbot
binbot added a comment. Yes, if we cannot agree in a good soulution, I will develop a huwiki-specific module. I just thought this feature would be useful throughout Wikipedia, but I don't insist on it. TASK DETAIL https://phabricator.wikimedia.org/T328769 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T328769: Enhance Pywikibot.Page with is_person method

2023-03-28 Thread RoySmith
RoySmith added a comment. As noted by others, I agree that it's too domain-specific to be part of the Page class. FWIW, I've implemented this (using logic specific to enwiki) as part of dyk-tools: Article.is_biography()

[Pywikipedia-bugs] [Maniphest] [Commented On] T328769: Enhance Pywikibot.Page with is_person method

2023-03-28 Thread binbot
binbot added a comment. Should we create then a derived WikipediaPage class? I don't really like the idea, but later it could have other wikispecific methods. This would explicitely dedicated to this project, and whoever calls it in a bad project, can blaim him/herself. TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T328769: Enhance Pywikibot.Page with is_person method

2023-03-28 Thread matej_suchanek
matej_suchanek added a comment. What I dislike about the proposal is that it introduces a domain-specific code to an almost completely generic interface. Indeed, I checked that almost every piece of code in `Page`/`BasePage` is site-agnostic and would work on whatever wiki you use it. Not

[Pywikipedia-bugs] [Maniphest] [Commented On] T331796: Do not regress template counter values

2023-03-28 Thread MarcoAurelio
MarcoAurelio added a comment. Well that worked , thanks :) TASK DETAIL https://phabricator.wikimedia.org/T331796 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/

[Pywikipedia-bugs] [Maniphest] [Commented On] T331796: Do not regress template counter values

2023-03-28 Thread MarcoAurelio
MarcoAurelio added a comment. Thank you for your help @matej_suchanek - I'll do as indicated and see if the bot wants to archive their VP afterwards :-) TASK DETAIL https://phabricator.wikimedia.org/T331796 EMAIL PREFERENCES