[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 > > . > >> Expiry of pr

[pywikibot] Re: Page protection for limited time

2022-11-27 Thread Dalba
Hi Bináris! Time can be passed through the `kwargs` as `expiry` keyword to APISite.protect . > Expiry of protections can be set via kwargs, see Site.protect() for > details. > On Sun,

[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áris userpa

[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" does not have requi

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

[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 an email