[pywikibot] Temporary solution for a FlaggedRevs problem

2024-11-08 Thread Bináris
/wiki/Szerkeszt%C5%91:BinBot/huwiki/temp_review.py -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/J35XWZTDJRELTM4WWSRPD7EBJ7USE6OK

[Wikitech-l] Re: compliance with US sanctions e.g. against Russia in GPL-licensed projects

2024-11-01 Thread Bináris
While I completely agree with bawolff, I have to say that > [3] https://ofac.treasury.gov/faqs/all-faqs > > is a long-long page, and simply linking the whole stuff does not make me understand what you speak about at all. You really can't expect everybody on this list to go through this and guess w

[Wikitech-l] Re: Disabling createpage right in Serbian Wikipedia for non-registered users

2024-09-11 Thread Bináris
Zoran Dori ezt írta (időpont: 2024. szept. 11., Sze, 20:50): > > Are there statistics on new users' new pages, regarding the ratio of >> vandalism? > > I would have to check that and let you know. > I am not personally interested, I was just thinking loudly. Your situation is really not promisin

[Wikitech-l] Re: Disabling createpage right in Serbian Wikipedia for non-registered users

2024-09-09 Thread Bináris
I am sure youe are over these steps before opening such a talk, just thinking loudly. If this is a repeated activity, does it have recognizeable patterns? If so, can it be handled by abuse filter? According to CU investigations, would there be useful a range block? If it comes from a few recurring

[pywikibot] Re: How to translate interwiki link into URL?

2024-08-23 Thread Bináris
pywikibot@lists.wikimedia.org > Public archives at > https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/LIKLVLSRJRPHP32YCLEZMRMSOW56AY6T/ > To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org > -- Bináris

[pywikibot] Re: How to translate interwiki link into URL?

2024-08-23 Thread Bináris
I think these two will do the job: https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.site.html#pywikibot.site._apisite.APISite.interwiki https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.site.html#id8 ___ pywikibot mailing list -- p

[pywikibot] Re: How to translate interwiki link into URL?

2024-08-23 Thread Bináris
__ > pywikibot mailing list -- pywikibot@lists.wikimedia.org > Public archives at > https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/VEA2VY5U5BXBGYIDT3VKEPNV6GYQ6KXU/ > To unsubscribe send an email to py

[Wikitech-l] Re: Coming soon: A new sub-referencing feature

2024-08-20 Thread Bináris
I have just experienced a related problem recently. I am not sure if it is in the scope of your project, so I just mention it here. Original problem: a reference is given in Wikidata as source of death, for example. It appears automatically in infobox. Later in the article I need that for another

[Wikitech-l] Re: End of goo.gl URL shortener

2024-07-23 Thread Bináris
hp?title=Talk:Spam_blacklist&oldid=1767754#goo.gl > [2] > https://meta.wikimedia.org/wiki/Talk:Spam_blacklist/Archives/2012-06#Goo.gl%2Fmaps > [3] > https://developers.googleblog.com/en/google-url-shortener-links-will-no-longer-be-available/ > > Count Count > > >

[Wikitech-l] End of goo.gl URL shortener

2024-07-22 Thread Bináris
ilter that warns users to avoid new goo.gl links, and change the existing ones by bot. Bináris ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/posto

[pywikibot] Re: Creating a bot (Serbian Wikipedia)

2024-07-15 Thread Bináris
X2SEXXDIZXT6W/ > To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org > -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimed

[Wikitech-l] Re: Logging indefinite blocks

2024-06-27 Thread Bináris
ezt írta (időpont: 2024. jún. 27., Cs, 16:49): > I’m not sure if I understand your question, but is is a fact that Tgr > added separate “indefinite” duration to the offered drop-down list on > huwiki in 2008. < > https://hu.wikipedia.org/w/index.php?title=MediaWiki:Ipboptions&diff=prev&oldid=4056

[Wikitech-l] Re: Logging indefinite blocks

2024-06-27 Thread Bináris
Somebody decided to display separate infinite and indefinite block time in dropdown menu. I suppose, that had to be intentional, but is not represented. I do see the difference between them as I wrote above, so displaying both properly would be a better choice IMHO than simplifying the dropdown men

[Wikitech-l] Re: Logging indefinite blocks

2024-06-27 Thread Bináris
quot; in some other places > though. I don't think that's intentional, the software was just written > by many different people and they didn't all worry about such details.) > > > On 2024-06-27 11:28, Bináris wrote: > > Hi folks, > > > > I can choose eith

[Wikitech-l] Article source code style guide

2024-06-27 Thread Bináris
users without programming experience, that's why I ask here.) -- Bináris ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/

[Wikitech-l] Logging indefinite blocks

2024-06-27 Thread Bináris
appearance sometimes causes misunterstandings among users. Is it a bug or a feature? -- Bináris ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org

[pywikibot] Re: Mass hide revisions

2024-04-11 Thread Bináris
ows you to mass hide from Special:Contributions. > > Regards, > JJ > > > On Thu, Apr 11, 2024 at 1:39 AM Bináris wrote: > >> *TL;DR*: we can mass hide vandal revisions from pages histories, e.g. >> obscene images and edit comments. >> >> Of course, this needs admin rig

[pywikibot] Mass hide revisions

2024-04-11 Thread Bináris
7;: 'revisiondelete', 'type': 'revision', 'ids': ids, 'hide': hide, 'token': token, 'reason': reason, } request = site.simple_request(**params)

[pywikibot] How to list contributions of an IP range?

2024-04-10 Thread Bináris
anon = '89.134.24.79/16' user = pywikibot.User(site, anon) for contrib in user.contributions(): print(contrib[1]) This makes nothing. (There is a massive vandal from a range, and I want to hide all the inappropriate contents made by him.) -

[pywikibot] Path between a category and an article

2024-04-03 Thread Bináris
Hi, given a category c and a page p, p is listed in c.articles(recurse=True) But is shouldn't... And I don't know the depth of it. Is there a simple way to find a path between them, and guess, why is the page in the category? (I spent 10 minutes with manual trying, total fail.) -

[Wikitech-l] Re: APIi page generator namespace order

2024-02-22 Thread Bináris
Great, thank you! :) ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] APIi page generator namespace order

2024-02-21 Thread Bináris
which would be nice.) -- Bináris ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[pywikibot] Flagged revisions

2024-02-03 Thread Bináris
As part of the huwiki package, I wrote some methods dealing with flagged revisions that work in some wikis. You may find them useful. https://hu.wikipedia.org/wiki/user:BinBot/huwiki/flaggedrevs.py -- Bináris ___ pywikibot mailing list -- pywikibot

[pywikibot] Re: How to add a category to a page

2024-01-15 Thread Bináris
function or method, its treat method can be used as templet: >> >> >> https://doc.wikimedia.org/pywikibot/master/_modules/scripts/category.html#CategoryAddBot >> >> You can also use textlib for manipulating templates. >> >> Best >> xqt >> >> Von meinem iP

[pywikibot] Re: How to add a category to a page

2024-01-03 Thread Bináris
Thank you! At the end,I wrote to the end. We must care if there is already a \n ath end or not. Ethan N. ezt írta (időpont: 2024. jan. 3., Sze, 18:47): > Bináris, > A nice function for this does not currently exist for Page class. See > https://phabricator.wikimedia.org/T325420.

[pywikibot] How to add a category to a page

2024-01-02 Thread Bináris
At https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html I only find change_category which requires the old cat to be removed present. But how do I just add a new one w/o changing? OK, I can add it to the end of text, but that is not nice. -- Bináris

[Wikitech-l] Re: Moving special page alias translations to JSON

2023-11-30 Thread Bináris
I like this idea, but: A PHP file can be individual for each wiki installation, while Translatewiki will force all wikis of the same language to use the same translations. Am I right? ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubs

[pywikibot] I get mad of replace.py, please help

2023-08-22 Thread Bináris
in other arcticles shows the above mentioned silly behaviour. What do I do wrong? I try to attach a small creenshot: two articles are correct, the 3rd one is totally bad. [image: kép.png] -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimed

[pywikibot] Moderator please

2023-08-22 Thread Bináris
Who is the moderator here? I sent a message with a small picture that was not avoidable to show the problem and it got stuck. Please, help. -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https

[Wikitech-l] Re: gotointerwiki-external

2023-06-01 Thread Bináris
bawolff ezt írta (időpont: 2023. jún. 1., Cs, 14:24): > Ensure that the iw_local field is set to 1. Otherwise the interwiki is not > considered safe for automatic redirection. > Great, it works, thank you! ___ Wikitech-l mailing list -- wikitech-l@list

[Wikitech-l] gotointerwiki-external

2023-06-01 Thread Bináris
o leave my wiki. Of course, I know, that's why I did it. What I could dig from translatewiki that the name of this message is 'gotointerwiki-external'. How could I switch this feature off and make my wiki just to go to the desired link? -- Bináris _

[pywikibot] Re: Request for permission to create a Conda package for Pywikibot

2023-06-01 Thread Bináris
Welcome! I think nobody may give you a permission as nobody is boss or owner here. :-) This is a free collaboration. Pywikibot is under MIT license, that is the key. ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://l

[pywikibot] Re: Private wiki configuration/Get page from id

2023-05-11 Thread Bináris
JJMC89 ezt írta (időpont: 2023. máj. 12., P, 1:12): > There isn't a way to instantiate `Page` from an id. > But perhaps should be. Title is not always good for restoring the same page. Your page id is 1. Sb. renames it – the actual article will have other title with id 1, the redirect page the

[pywikibot] Limit cosmetic changes by a function or generator

2023-04-02 Thread Bináris
nt to modify the core system on my device, because it will be disrupted when refreshing and is not distributable to other users. In eneral, is there a way to use own _global_ command-line arguments? -- Bináris ___ pywikibot mailing list -- pywi

[pywikibot] Re: Place for Wikipedia in the framework

2023-03-31 Thread Bináris
Roy Smith ezt írta (időpont: 2023. márc. 31., P, 17:25): > For example, as I noted on the phab ticket, I've got my own code which > determines if an article is a biography. It uses an entirely different > method than your code does. For what I was doing, my method is the right > way. For what

[pywikibot] Place for Wikipedia in the framework

2023-03-31 Thread Bináris
ian Wikipedia alone, because I need them. Is that really what we want? Please help to find the place of Wikipedia-related code. -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyp

[Wikitech-l] Re: How to give a range block now?

2023-03-29 Thread Bináris
Dreamy Jazz ezt írta (időpont: 2023. márc. 29., Sze, 9:22): > This has been fixed and should be out on wikis this week if I understand > correctly (otherwise will be next week). Associated task is > https://phabricator.wikimedia.org/T332994 > Great, thank you! ___

[Wikitech-l] How to give a range block now?

2023-03-29 Thread Bináris
mfortable. What I can do, write /64 into the URL at the contributions of the vandal, but that is really not what I dreamt about. Can somebody explain, why this happened? Is there a way of range blocking that I am not aware of? Shall I ticket a bug?

[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 https

[pywikibot] Re: Huwiki has new namespaces today, Pywikibot does not handle them

2023-03-27 Thread Bináris
Solved: I emptied the apicache-py3 directory, and it works. It always helps if you write about a problem publicly, the solution comes after. :-) Bináris ezt írta (időpont: 2023. márc. 27., H, 20:52): > Today in wikipedia:hu namespaces 118, 119 were set. See T33308. >

[pywikibot] Huwiki has new namespaces today, Pywikibot does not handle them

2023-03-27 Thread Bináris
>>> list(site.namespaces()) [-2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 90, 91, 92, 93, 100, 101, 710, 711, 828, 829, 2300, 2301, 2302, 2303] How to clear the API cache? Should Pywikibot automatically recognaize the new namespaces or shall I alter the code some

[Wikitech-l] Re: Use case for sha1 in revisions

2023-03-23 Thread Bináris
Thank you, now it is quite clear! ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] Re: Use case for sha1 in revisions

2023-03-23 Thread Bináris
Vi to ezt írta (időpont: 2023. márc. 23., Cs, 12:03): > Afair this avoids a new rev to be createad if you click "save" without > changing contents. > Great! Thx. ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email

[Wikitech-l] Re: Use case for sha1 in revisions

2023-03-23 Thread Bináris
ily it is > for external users. > > -- > Brian > > On Wednesday, March 22, 2023, Bináris wrote: > >> Hi, >> can someone please tell me a use case for sha1 in revisions? >> https://www.mediawiki.org/wiki/API:Revisions >> >&g

[Wikitech-l] Use case for sha1 in revisions

2023-03-22 Thread Bináris
Hi, can someone please tell me a use case for sha1 in revisions? https://www.mediawiki.org/wiki/API:Revisions (Of course, I tried first on talk page.) -- Bináris ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email

[pywikibot] Re: How to avoid leaving extra blank lines when removing templates?

2023-03-21 Thread Bináris
Biking is great and sometimes hard to begin when the other option is coding. :-) My approach would be to import template.py as a module which is able to do the work. Now I see, it has everything in __init__, so not very flexible, and needs a page generator.

[Wikitech-l] Re: VisualEditor inserting ``

2023-03-13 Thread Bináris
I don't know the reason of the problem, but I think, it is generally a good idea to avoid these XML-like self-closing tags in the world of HTML5. Why not just ? ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to

[pywikibot] Pywkibot Cookbook

2023-03-09 Thread Bináris
discovered during the process, the the last one. - https://www.mediawiki.org/wiki/Manual:Pywikibot/Cookbook - https://www.mediawiki.org/wiki/User:Bin%C3%A1ris/Pywikibot_cookbook - https://phabricator.wikimedia.org/T330855 -- Bináris ___ pywikibot

[pywikibot] Re: Versionchanged

2023-03-05 Thread Bináris
ezt írta (időpont: 2023. márc. 3., P, 18:14): > It is always the current version when the change was made. > But until yesterday the current version was 8.1.0dev0, then it became 8.0.1 which could not been foreseen. ___ pywikibot mailing list -- pywiki

[pywikibot] Versionchanged

2023-03-03 Thread Bináris
When you contribute something to the framework, how do you know what version comes to docstring after versionadded or versionchanged? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org

[pywikibot] Re: Error logging into Wikipedia through pywiki bot on local device

2023-02-28 Thread Bináris
See also https://phabricator.wikimedia.org/T330488 For me it is the same, but still I can save pages under my bot's name. Myterious. Try to save a page. ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimed

[pywikibot] Re: Line breaking the cite templates

2023-02-27 Thread Bináris
Now we have an advanced template_regex in textlib, is it not good? Better mwparserfh or template_regex? ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.o

[pywikibot] Re: Line breaking the cite templates

2023-02-27 Thread Bináris
> > Von meinem iPhone gesendet > > Am 27.02.2023 um 07:46 schrieb Bináris : > >  > Do we have a script or fix for breaking the cite templates like this? > > https://hu.wikipedia.org/w/index.php?title=Cseh_K%C3%A1lm%C3%A1n

[pywikibot] Line breaking the cite templates

2023-02-26 Thread Bináris
Do we have a script or fix for breaking the cite templates like this? https://hu.wikipedia.org/w/index.php?title=Cseh_K%C3%A1lm%C3%A1n&diff=prev&oldid=25862570 -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public arc

[pywikibot] Re: Multiple users in user-config.py?

2023-02-23 Thread Bináris
Roy Smith ezt írta (időpont: 2023. febr. 24., P, 0:42): > My bot needs to be able to run as either of two different accounts > depending on the task. DYKToolsBot for most things, DYKToolsAdminBot for > specific tasks that need admin rights. How do I do this? > I just got up to quickly wirite s

[pywikibot] Re: Checkuser

2023-02-23 Thread Bináris
Roy Smith ezt írta (időpont: 2023. febr. 23., Cs, 20:09): > It's based on mwclient instead of pywikibot, but I do have some code that > uses the checkuserlog API. > Thank you! I don't know mwclient and hate dealing with login, but I will have a look. _

[pywikibot] Checkuser

2023-02-23 Thread Bináris
Folks, do we have anything to use CU/Investigate by bot? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message

[pywikibot] Re: Unable to commit

2023-02-20 Thread Bináris
Roy Smith ezt írta (időpont: 2023. febr. 20., H, 18:24): > > The rest of what I wanted to say was that, for better or worse, git has > won, at least now. Looking for client applications that make it easier to > use is a good thing, but I hope nobody is thinking of moving to some other > VCS for

[pywikibot] Re: Unable to commit

2023-02-20 Thread Bináris
ezt írta (időpont: 2023. febr. 20., H, 18:20): > > > … Sorry the mail was committed by accident… > > Anyway I would like to recommend TortoiseGit. I’ve wrote a documentation > at mediawiki wiki how to use it. > > Maybe we can organize an online meeting to introduce this way or I could > help remo

[pywikibot] Re: Unable to commit

2023-02-20 Thread Bináris
Thank you for the idea! This sounds interesting. But I would have to upload my private key to Toolforge, which sounds bad, wouldn't I? Yusuke Matsubara ezt írta (időpont: 2023. febr. 20., H, 12:48): > Hi Bináris > > Can you perhaps push from your toolforge user directory? [1] As

[pywikibot] Re: pywikibot.stopme()

2023-02-20 Thread Bináris
Thank you! ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/255JAENW7DXNQMONIUAJVTBAVBFWISVK/ To unsubscribe send an email to pywikibot-le...@

[pywikibot] pywikibot.stopme()

2023-02-19 Thread Bináris
Is pywikibot.stopme() still useful? I don't see it in the scripts. -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/me

[pywikibot] Unable to commit

2023-02-15 Thread Bináris
frustrated and disappointed, but I cannot do anything until T329452 is solved somehow. -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message

[Wikitech-l] Which server answers 500?

2023-02-14 Thread Bináris
Please help in https://phabricator.wikimedia.org/T329452 Which server told me 500? Is it a Gerrit problem? A Pywikibot problem? What is the next step? -- Bináris ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email

[Wikitech-l] Re: Can't claim on Phabricator

2023-02-14 Thread Bináris
Brian Wolff ezt írta (időpont: 2023. febr. 14., K, 0:41): > I also have a memory of there previously being a 1 click button in the > sidebar to claim task. Maybe it was a feature that got removed or perhaps > just a false memory. We may have taken the same pill then. :)

[pywikibot] Re: f strings and regexes

2023-02-11 Thread Bináris
Yes, definitely. Thank you! Merlijn van Deen (valhallasw) ezt írta (időpont: 2023. febr. 11., Szo, 22:41): > Hi Bináris, > > I would consider it on a case-by-case basis. Note that the guidelines > state "should be avoided", not "are absolutely forbidden to be used

[pywikibot] Re: f strings and regexes

2023-02-11 Thread Bináris
Bináris ezt írta (időpont: 2023. febr. 2., Cs, 19:22): > > https://www.mediawiki.org/wiki/Manual:Pywikibot/Development/Guidelines#Miscellaneous > says: > " Prefer f-strings over string.format(). Modulo operator % for string > formatting should be avoided." > &

[pywikibot] Re: Cannot push my commit

2023-02-06 Thread Bináris
Kunal Mehta ezt írta (időpont: 2023. febr. 7., K, 2:03): > Hi, > > > For pushing over HTTPS, it uses a different password than your login > one. See . > Thank you, Kunal! That causes another error. 1. I told git remote set-url origin

[pywikibot] Re: Cannot push my commit

2023-02-06 Thread Bináris
One clue. I tried to ssh from git bash window as written on https://www.mediawiki.org/wiki/Gerrit/Tutorial For some reasons, it is looking for my SSH key in obscure non-existing directories. I don't know where comes this idea from. Maybe pageant is useless? How can I set the pass to my key? $ *ssh

[pywikibot] Re: Cannot push my commit

2023-02-06 Thread Bináris
Just for test I tried git push instead of review. It asked for my user name and password, and I got this (password is correct, I just logged in to gerrit in browser): c:\Pywikibot-dev\core>git push warning: failed to probe 'https://gerrit.wikimedia.org/' to detect provider warning: An error occurr

[pywikibot] Cannot push my commit

2023-02-06 Thread Bináris
irectory I also read https://aka.ms/gcm/autodetectbut did not help what to do. Can someone help me understand this mess? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://l

[pywikibot] Re: Gerrit problem – certificate has expired

2023-02-06 Thread Bináris
I wwish we were back on Sourceforge when things were still simple. I hate this struggle for being able to work anything. ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@

[pywikibot] Re: Gerrit problem – certificate has expired

2023-02-06 Thread Bináris
OK, now I have tha latest git, fail again: c:\Pywikibot-dev>git clone --recursive --branch stable --depth 3 https://gerrit.wikimedia.org/r/pywikibot/core.git Cloning into 'core'... remote: Counting objects: 599, done remote: Finding sources: 100% (599/599) remote: Getting sizes: 100% (507/507) rem

[pywikibot] Re: Gerrit problem – certificate has expired

2023-02-06 Thread Bináris
Zoran Dori ezt írta (időpont: 2023. febr. 6., H, 22:32): > Correct command for Windows is git update-git-for-windows. > No, my install is too old for that, this says that prior to 2.14 I have to completely uninstall and reinstall, oh ˇ˘#@@{ˇ^°#{ https://phoenixnap.com/kb/how-to-update-git Thank

[pywikibot] Re: Gerrit problem – certificate has expired

2023-02-06 Thread Bináris
I found the real command: git --version git version 2.8.2.windows.1 A page says that git update should work, but it is also an unknown command. ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hy

[pywikibot] Re: Gerrit problem – certificate has expired

2023-02-06 Thread Bináris
ion of the git package? > > Can you run git -v in your command line and send it here? > > Best regards, > Zoran > > пон, 6. феб 2023. у 21:57 Bináris је написао/ла: > >> >> I try to install Pywikibot with git, following >> https://www.mediawiki.org/wiki/Manua

[pywikibot] Gerrit problem – certificate has expired

2023-02-06 Thread Bináris
org/r/pywikibot/core.git/': SSL certificate problem: certificate has expired Is it possible? I can't believe. Or is there another problem causing this message? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org

[Wikitech-l] Re: [Final call] Wikimania Scholarship Application

2023-02-06 Thread Bináris
Slavina Stefanova ezt írta (időpont: 2023. febr. 1., Sze, 11:21): > > The *deadline* for applying for a Scholarship to attend Wikimania 2023 in > Singapore on August 16-19 is: > > ** Sunday, 5 February 2023 23:59 AoE > ** > That will be in 2 hours,

[pywikibot] Re: How to list logs?

2023-02-05 Thread Bináris
gt; gen = site.logevents('delete') > >>> print(next(gen)) > > > > On Sun, Feb 5, 2023 at 3:31 PM Bináris wrote: > >> I tried to list delete log entries: >> >> from pywikibot.data.api import LogEntryListGenerator >> gen = LogEntryListGen

[pywikibot] How to list logs?

2023-02-05 Thread Bináris
kibot\logentries.py", line 339, in create return self._creator(logdata) File "c:\Pywikibot\pywikibot\logentries.py", line 329, in self._creator = lambda data: logclass(data, self._site) File "c:\Pywikibot\pywikibot\logentries.py", lin

[pywikibot] Re: How to ignore all the non-visible stuff?

2023-02-04 Thread Bináris
t mailing list -- pywikibot@lists.wikimedia.org > Public archives at > https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/G5Z3TPTY3QFPZALSCVW7ZVTXJ7ZTZ5BC/ > To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org > -- Bináris ___

[pywikibot] f strings and regexes

2023-02-02 Thread Bináris
all curly braces must be doubled, which makes regexes very hard to read and easy to misspell. What is the best practice when you substitute a variable into a regex? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives

[Wikitech-l] Re: Can't claim on Phabricator

2023-02-02 Thread Bináris
Jaime Crespo ezt írta (időpont: 2023. febr. 2., Cs, 17:10): > Bináris, > > to claim or assign a task, you have to go to a particular task, then at > the end click on the "Add action..." list, then "Assign / Claim" and write > your account name or someone

[Wikitech-l] Can't claim on Phabricator

2023-02-02 Thread Bináris
Hi, my account is https://phabricator.wikimedia.org/p/binbot/ I don't see either claim or assign command at the tasks. Where is the problem? -- Bináris ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an ema

[pywikibot] Re: How to exclude HTML comments

2023-01-31 Thread Bináris
OK, I digged into the code, and found removeDisabledParts(). Bináris ezt írta (időpont: 2023. jan. 30., H, 23:09): > Given a piece of text, I want to exclude when > searching a template. Is there a ready-to-use, nice, canonical method for > it? > > -- > Binár

[pywikibot] Templates in archivebot.py

2023-01-30 Thread Bináris
le=Szerkeszt%C5%91:Atobot/archivebot_hu.py&diff=prev&oldid=25774753 [2] https://en.wikipedia.org/wiki/Template:Unresolved -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/l

[pywikibot] How to exclude HTML comments

2023-01-30 Thread Bináris
Given a piece of text, I want to exclude when searching a template. Is there a ready-to-use, nice, canonical method for it? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org

[pywikibot] Re: Tortoise SVN installs an old version

2023-01-30 Thread Bináris
Hi Merlijn, Merlijn van Deen (valhallasw) ezt írta (időpont: 2023. jan. 30., H, 20:24): > > However: SVN support on Github is scheduled to be removed in January 2024: > https://github.blog/2023-01-20-sunsetting-subversion-support/ , so I > would suggest switching to another distribution method (

[pywikibot] Re: Tortoise SVN installs an old version

2023-01-30 Thread Bináris
I wanted to put a warning on the page, but it does not let me save it for some silly translation issues. I give it up, somebody will be happy that I can't edit a simple page after 16 years of being a Wikipedian. ___ pywikibot mailing list -- pywikibot@lis

[pywikibot] Re: Tortoise SVN installs an old version

2023-01-30 Thread Bináris
Zoran Dori ezt írta (időpont: 2023. jan. 30., H, 14:19): > > Are you using a GUI extension or are you cloning via the command line? > Tortoise SVN GUI. Thanks. I will try then download a zip version. ___ pywikibot mailing list -- pywikibot@lists.wikime

[pywikibot] Tortoise SVN installs an old version

2023-01-30 Thread Bináris
-1 (unknown), 2023/01/30, 13:59:21, n/a) Release version: *3.1.dev0* requests version: 2.25.1 cacerts: C:\Python37\lib\site-packages\certifi\cacert.pem certificate test: ok Python: 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] -- Biná

[pywikibot] Re: SVN install vs i18n

2023-01-30 Thread Bináris
Solved: the problem was that I had a working 7.7.x copy of Pywikibot, and I wanted to reinstall it with SVN. A clean install solved it. Bináris ezt írta (időpont: 2023. jan. 30., H, 13:41): > Hi, > > I followed > https://www.mediawiki.org/wiki/Manual:Pywikibot/Inst

[pywikibot] SVN install vs i18n

2023-01-30 Thread Bináris
Hi, I followed https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation/SVN#Download_Pywikibot_with_TortoiseSVN_for_Windows_user At the last step I get SVN error: C:\Pywikibot\scripts\i18n The node 'C:\Pywikibot\scripts\i18n' was not found. What i the next step? -

[pywikibot] Re: Pruning category search?

2023-01-20 Thread Bináris
Roy Smith ezt írta (időpont: 2023. jan. 14., Szo, 19:15): > Is there a way to recurse through a category, but excluding specific > sub-cats? For example, I want to find all the templates in > [[Category:People and person infobox templates]], except that I don't want > to recurse into [[Category:

[pywikibot] Re: Getting started

2022-12-28 Thread Bináris
sts.wikimedia.org > To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org > -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: Use re.fullmatch instead of $ at the end of regex

2022-12-26 Thread Bináris
OK. ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Use re.fullmatch instead of $ at the end of regex

2022-12-26 Thread Bináris
more Python-specific regexes, the Pywikibot users and AWB uers may be able to help each other less on bot owners' noticeboards. This is not a critics, just a point of view which may worth to consider. -- Bináris ___ pywikibot mailing list -- pywi

[pywikibot] Re: Working with wikitables

2022-12-22 Thread Bináris
I tried to list the cells in a table row with __children__ as written at https://mwparserfromhell.readthedocs.io/en/latest/api/mwparserfromhell.nodes.html#mwparserfromhell.nodes.Node This is a very ugly playing code that iterates on all table rows, then after the for loop it repeats the last row,

[pywikibot] Re: Working with wikitables

2022-12-22 Thread Bináris
William Avery ezt írta (időpont: 2022. dec. 22., Cs, 11:12): > FWIW, I wrote a bot script to sort some tables a while ago. > > > https://bitbucket.org/WilliamAvery/wikipythonics/src/master/draftPickSortBot.py > Thank you, I will test it! ___ pywikibot

[pywikibot] Re: Working with wikitables

2022-12-22 Thread Bináris
_tags(matches=lambda tag: tag.tag.lower() > in ("table", "caption", "th", "tr", "td")): > ... print(f"{tag!r} is a {tag.tag!r}") > ... > "{| class='wikitable'\n!c1 h!!c2 h\n|r1 c1\n|r1 c2\n|}" is a 'table' >

  1   2   3   4   5   6   7   8   9   10   >