[pywikibot] Re: Mass hide revisions

2024-04-11 Thread Bináris
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 rights. >&

[pywikibot] Mass hide revisions

2024-04-11 Thread Bináris
: ids, 'hide': hide, 'token': token, 'reason': reason, } request = site.simple_request(**params) request.submit() To get the ids use for contrib in user.contributions(): contrib[0] will be the page object, while contrib[1] the revision id f

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

2024-04-11 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.) -- Bináris

[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.) -- Bináris

[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

[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

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

2023-08-22 Thread Bináris
? 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.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot

[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] gotointerwiki-external

2023-06-01 Thread Bináris
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 ___ Wikitech-l

[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

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

[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
. 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/hyperkitty/list/pywikibot@lists.wikimedia.org/message

[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
able. 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 somewhere? --

[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

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

2023-03-23 Thread Bináris
primarily 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-22 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 --

[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

[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

[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=prev=25862570 > > -- > Bináris > _

[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=prev=25862570 -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https

[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

[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

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

[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] 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/message

[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? $

[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

[pywikibot] Cannot push my commit

2023-02-06 Thread Bináris
/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://lists.wikimedia.org/hyperkitty/list/pywik

[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

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

[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

[pywikibot] Re: Gerrit problem – certificate has expired

2023-02-06 Thread Bináris
f 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/Manual:Pyw

[pywikibot] Gerrit problem – certificate has expired

2023-02-06 Thread Bináris
/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 Public archives at https

[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

[pywikibot] Re: How to list logs?

2023-02-05 Thread Bináris
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 = LogEntryListGenerator('delete') >

[pywikibot] How to list logs?

2023-02-05 Thread Bináris
e 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", line 42, in __init__ .format(

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

2023-02-04 Thread Bináris
ng 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 email

[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
erkeszt%C5%91:Atobot/archivebot_hu.py=prev=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/list/pywikibot@lists.w

[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] 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] 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? -- Bináris

[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

[pywikibot] Re: Getting started

2022-12-28 Thread Bináris
ot@lists.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] 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 -- pywikibot

[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-21 Thread Bináris
I don't find the description of objects and available tags in documentation, can you help me? Are there cells, rows, columns, headings? ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to

[pywikibot] Handling import errors

2022-12-21 Thread Bináris
this mismatch that mwparserfromhell is either a module or an Exception, is there any advantage of this solution? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Working with wikitables

2022-12-21 Thread Bináris
Do we have anything to exclude tables from page text? I read mwparserfromhell doc, but did not find. -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: Pywikibot documentation

2022-12-21 Thread Bináris
nsubscribe 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: Page views

2022-12-18 Thread Bináris
Thanks! Meanwhile Xqt created https://phabricator.wikimedia.org/T325473. ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: Page views

2022-12-18 Thread Bináris
Click https://hu.wikipedia.org/w/index.php?title=Erfurti_latrinabaleset=info Ctrl F "Megtekintések száma az elmúlt 30 napban" Click on the number next to it Gives pop-up diagram Pywikibot.ico Description: Binary data ___ pywikibot mailing list --

[pywikibot] Re: Error when trying to log in

2022-12-18 Thread Bináris
ezt írta (időpont: 2022. dec. 18., V, 9:22): > It is 1.38.4 > That is not too old, the problem should be elsewhere. ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Page views

2022-12-17 Thread Bináris
At left of articles there is a page information link, which shows recent page views on a diagram. Can I get these page views numerically by Pywikibot? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email

[pywikibot] Re: Error when trying to log in

2022-12-17 Thread Bináris
quot;wgRelevantPageName":"Special:ApiHelp","wgRelevantArticleId":0,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgNoticeProject":"all", > > ... > > > So it seems that it can access the page, but is not parsing it correctly > for some reason. Anyone know what the issue is? > > ___ > pywikibot mailing list -- pywikibot@lists.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: 2FA

2022-12-17 Thread Bináris
Great, thank you! :-) ezt írta (időpont: 2022. dec. 17., Szo, 15:02): > Hi Bináris, > > Pywikibot master (8.0) does support 2FA. Just login with your sysop > account. You will be asked for the password and after that for the 2FA > token. > > ⚓ T186274 Enable 2FA

[pywikibot] Re: 2FA

2022-12-17 Thread Bináris
Thank you! Amir Sarabadani ezt írta (időpont: 2022. dec. 17., Szo, 11:43): > Yes but they could simply set a bot password instead and that's the > correct way to do it anyway regardless of 2fa or not. > > Go to Special:BotPasswords > > Bináris schrieb am Sa., 17. Dez. 2022, 1

[pywikibot] 2FA

2022-12-17 Thread Bináris
I wrote a script which requires admin rights. Someone told he couldn't use it because Pywikibot does not supoort 2FA login. Is that correct? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email

[Wikitech-l] Re: Movereason-dropdown

2022-12-14 Thread Bináris
Amir Sarabadani ezt írta (időpont: 2022. nov. 30., Sze, 16:48): > Hi, > I suggest creating a ticket so it can be implemented in MediaWiki itself, > it sounds like a rather easy and useful feature. > Thanks, https://phabricator.wikimedia.org/T325257

[Wikitech-l] Re: Movereason-dropdown

2022-11-29 Thread Bináris
As I got no answer, I was forced to solve it myself with JS: https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Bin%C3%A1ris/Renamereasons.js Bináris ezt írta (időpont: 2022. nov. 21., H, 14:15): > Hi, > > we have a MediaWiki:Deletereason-dropdown which appears as a dropdown on > Special

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-29 Thread Bináris
OK, thank you, that's a correct answer, and means that the question was valid. :-) ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-29 Thread Bináris
. nov. 29., K, 17:37): > Oh yes. Please, please break every single script written by every user, > just so we can have perfect capitalization style. > > -- > *From:* Bináris > *Sent:* Tuesday, November 29, 2022 11:32 AM > *To:* Pywikibot discus

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-29 Thread Bináris
Roy Smith ezt írta (időpont: 2022. nov. 29., K, 17:26): > Ah, I've got this. The problem is that pywikibot.Site isn't a class, it's > a factory function that returns cached instances of APISite. > Should it not have a lower case name in this case?

[pywikibot] Re: Logins

2022-11-29 Thread Bináris
Thank you! How does pwb work for you without .py? ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: Logins

2022-11-28 Thread Bináris
I made a workaround so that I don't heve to log in all the time. :-) swap.bat is: ren other.lwp temp.lwp ren pywikibot.lwp other.lwp ren temp.lwp pywikibot.lwp del temp.lwp So I have to type swap and everything is fine. But I still don't know if I have to use both accounts in one script. In

[pywikibot] Re: Logins

2022-11-28 Thread Bináris
I found BinBot only in pywikibot.lwp. Now I have logged in again as Bináris with the above command. pywikibot.lwp (with ctrl f) contains Bináris, but does not contain BinBot. For some reason only one user is in it at a time. ___ pywikibot mailing list

  1   2   3   4   5   6   7   8   >