[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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

[pywikibot] Re: Logins

2022-11-28 Thread Bináris
Yes. BinBot is the bot account and Bináris is the admin account. The second login throws out the previous one. Respectively: c:\Pywikibot>python pwb.py -user:Bináris login -all ERROR: wikipedia:* is not a valid site, please remove it from your user-config Password for user Bináris on wikipedia

[pywikibot] Logins

2022-11-28 Thread Bináris
Where are the logins stored? In compat they had an obvious directory. Now I searched it a lot, but did not find. Whenever I run login.py, the previous account is thrown out, so I cannot comfortably use two accounts. Is it on purpose? -- Bináris

[pywikibot] Re: Page protection for limited time

2022-11-27 Thread Bináris
Thank you! Dalba ezt írta (időpont: 2022. nov. 27., V, 14:49): > Hi Bináris! > Time can be passed through the `kwargs` as `expiry` keyword to > APISite.protect > <https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.site.html#pywikibot.site._apisite.APISite.protect&g

[pywikibot] Re: Can't log in as admin

2022-11-27 Thread Bináris
Storno, I had to run login.py directly. But I still have the question: if I edit pages with my regular bot account, and one of them is protected, what will happen? Can I switch to my sysop account? Bináris ezt írta (időpont: 2022. nov. 27., V, 13:42): > python pwb.py -nolog -user:Biná

[pywikibot] Can't log in as admin

2022-11-27 Thread Bináris
python pwb.py -nolog -user:Bináris userpageprotect.py python pwb.py -nolog -user:"Bináris" userpageprotect.py Neither asks for my password when the script wants to protect a page. (The script is own development.) Instead I get: pywikibot.exceptions.UserRightsError: User "None

[pywikibot] Re: Page protection for limited time

2022-11-27 Thread Bináris
Of course I meant protect, not block. Bináris ezt írta (időpont: 2022. nov. 27., V, 13:23): > Hi, > in > https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#page.BasePage.protect > I don't see the time. Can we block for infinity only? > > -- > Bi

[pywikibot] Page protection for limited time

2022-11-27 Thread Bináris
Hi, in https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#page.BasePage.protect I don't see the time. Can we block for infinity only? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send

[pywikibot] Re: Do I need pwb.py?

2022-11-18 Thread Bináris
of Pywikibot would be the secret agent which is consuming my device. :-) Thank you again! -- Bináris Pywikibot.ico Description: Binary data ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: Do I need pwb.py?

2022-11-17 Thread Bináris
To the prevoius: The snake bites its own tail, we say here. There are a lot of logging errors because the script could not log the previous error. But it should not have logged anything, only perform a task, and write on screen and modify a page on wiki. In MY script nothing uses the device.

[pywikibot] Re: Do I need pwb.py?

2022-11-17 Thread Bináris
ezt írta (időpont: 2022. nov. 17., Cs, 8:19): > There is no disadvantage known when using it. > Thank you! But, there is. I have a special case, because I suffer with a low space storage device. I know, this is my fault, but anyway, it IS a problem (although I regularly free up space, something

[pywikibot] Do I need pwb.py?

2022-11-16 Thread Bináris
Hi, I write scripts, mostly for temporary tasks. I understand, that pwb.py handles arguments and logs and finds my script in /scripts/userscripts. Most of these scripts don't excpect arguments, the task is wired in. So is there any advantage of using pwb.py in this case? -- Bináris

[pywikibot] Re: How to analyze block logs?

2022-11-02 Thread Bináris
Roy Smith ezt írta (időpont: 2022. nov. 2., Sze, 18:19): > There's a bunch of block reason templates such as {{blocked proxy}}, > {{webhostblock}}, etc. They don't always get used, but they're good things > to look for before you fall back to just comment_text like '%proxy%' > This works for

[pywikibot] Re: How to analyze block logs?

2022-11-02 Thread Bináris
Roy, thank you! This is great! My version is https://quarry.wmcloud.org/query/68559 Next step is to try to use it with Pywikibot as Xqt said. ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to

[pywikibot] How to analyze block logs?

2022-11-01 Thread Bináris
, but after expiration they are likely to be still open, and need revision. Do we have a clever tool for this? How would you begin the task? -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot

[pywikibot] Re: FlaggedPagesGenerator

2022-10-17 Thread Bináris
Thank you! ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] FlaggedPagesGenerator

2022-10-17 Thread Bináris
be prohibited by communities on unflagged pages. -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: New Pywikibot 7.7 release

2022-10-12 Thread Bináris
On the page https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation may the warning " The last version of the zip-file is currently (14 July 2022) broken, it contains __metadata__.py instead of version string." be removed? ___ pywikibot mailing list

[pywikibot] Re: Pywikibot/pagefromfile.py only import 19 pages

2021-06-08 Thread Bináris
The server may be down. > Status code: 200 > > ___ > pywikibot mailing list -- pywikibot@lists.wikimedia.org > To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org > -- Bináris _

[pywikibot] Re: Replace multiple template names per page

2021-06-07 Thread Bináris
MarcoAurelio ezt írta (időpont: 2021. jún. 7., H, 16:18): > (e.g. just replace the template name leaving brakets > and parameters untouched i.e. {{template|1=parameter}}). > This is the easiest case if only the template names change and there are no nested templates. That's what replace.py is

  1   2   >