My 2 cents:
Pywikibot does not have the mission to correct ambigiousness of MediaWiki.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Fri, Apr 12
What about other methods of a user object, such as blocking that are available on web?
Wed, Apr 3
Jun 6 2023
Not so surprising. :-) But this is not a talk page, and the answering tool
does not work here. The magic word may have been put there on purpose.
In T336101#8831670, @ssastry wrote:I think caused by https://gerrit.wikimedia.org/r/c/mediawiki/services/parsoid/+/903797 and VE interaction. I am not sure how that is happening since I cannot reproduce it locally, but will investigate -- I imagine it is some specific kinds of interactions causing this.
Apr 24 2023
Apr 10 2023
In T334381#8768526, @Xqt wrote:
Now it works. But if I omit -nolog, wrapper-bot.log is written instead of commands.log. I don't see the source of this change in the patch, was it earlier?
Apr 8 2023
In T334325#8766551, @Umherirrender wrote:There is Special:MostLinkedCategories for categories with the most pages and there is Special:MostCategories for pages with the most categories.
In T334325#8766178, @Aklapper wrote:It's good for maintanence, looking for categories that are subject to subcat them.
@binbot: What would be a real-world example why you'd have to (!) "subcat" a category? Which actual underlying real-world problem would this solve?
Apr 7 2023
Oh, sorry, my fault.
I tried, it is very easy. __init__() and buildQuery() has to be modified.
Apr 2 2023
In T333762#8748891, @Xqt wrote:I guess this is related to https://github.com/sphinx-doc/sphinx/issues/11279
Thanks! This one is quite new from yesterday, a good find! Then we can hope i will be solved.
Apr 1 2023
In T57081#5090619, @Dvorapa wrote:First you should find out, what are the API queries to get these lists and if Pywikibot can handle them or not. I don't think any part of Flagged Revisions is supported by Pywikibot now, but perhaps some may be supported already by coincidence?
I did some coding.
https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:BinBot/huwiki/flaggedrevs.py is a module for handling FlaggedRevs in Hungarian Wikipedia
Features for end users:
flagged_state(): returns a state code (see class Flags) for a page.
cosmeticable(): tells if a page is suitable for cosmetic changes
CosmeticableFilterPageGenerator(): a wrapper page generator that filters cosmeticable pages. It has two variations: either it handles pages one by one, or takes all the pages from the inner generator, and quries them from API en masse. Perhaps this may be faster.
Mar 29 2023
OK then, I leave the framework and implement it in my own scripts.
Mar 28 2023
Yes, if we cannot agree in a good soulution, I will develop a huwiki-specific module. I just thought this feature would be useful throughout Wikipedia, but I don't insist on it.
Should we create then a derived WikipediaPage class? I don't really like the idea, but later it could have other wikispecific methods. This would explicitely dedicated to this project, and whoever calls it in a bad project, can blaim him/herself.
Mar 27 2023
It works. Thank you!
In T328769#8724653, @matej_suchanek wrote:This is too Wikimedia-specific (or even Wikipedia-specific). I'd prefer having this as a utility function or application logic rather than making it part of the model.
I think I am not quite worng if I suppose that Pywikibot is used on Wikipedia in vast majority of cases (although I myself already used it elsewhere). I would not make this an ideological question. This is the best place of Page methods.
Mar 26 2023
In T333083#8727127, @Superpes15 wrote:Hi @FoBe Do you want also to disable manual indexing (so __(NO)INDEX__ doesn't work)?
Mar 23 2023
Mar 22 2023
Try to use global options right after pwb.py, before the script name. What happens?
Mar 8 2023
Mar 7 2023
Most of it went live at https://www.mediawiki.org/wiki/Manual:Pywikibot/Cookbook.
Remaining part is being prepared on my above user page.
Mar 6 2023
@Xqt, I was asked to review, but I cannot run tests properly because of the submodule update problem, and I don't know a test case for this, just subscribed to follow.
Mar 5 2023
When a page is deleted by another process (e.g. a human) after getting the page for the first time, page.exists() will not get noticed by any method.
I think when I use page.get(force=True) and it finds a NoPageError, page.pageid should be set to 0 to notify other methods about the change.
Sorry, but the first problem with deletion still exists. page.exists() only notices the deletion if I recreate the Page object.
Mar 4 2023
Mar 2 2023
In T331005#8662234, @Umherirrender wrote:
This is Hungarian Wikipedia.
In T331005#8661252, @Aklapper wrote:This seems unrelated to generally configuring the MediaWiki software itself. Not sure which tag is best to add - trying DBA but please remove if I am wrong!
In T326779#8552577, @Bdijkstra wrote:I'm getting the same "No user is logged in" warning, but an explicit login doesn't help. Regular edits are saved as the correct username, but currently I cannot use patrol.py:
ERROR: User "None" does not have required user right "patrol" (UserRightsError)
Same as T326779?
Mar 1 2023
Feb 28 2023
In T330488#8653038, @Dalba wrote:
Feb 24 2023
Contents of the script:
OK, even more strange. I deleted EVERY *.lwp (not just pywikibot.lwp that was written.) Now this happens:
Feb 18 2023
@Leonprimer, please keep in mind that all these projects are maintained by volunteers like you. Nobody is obliged to solve your problem within ten minutes. The problem is clearly detected, Sometimes the solution is not two minutes and sometimes the task waits for another task that has to be solved. Creating so many duplicates with more and more exclamation marks is by no means a good faith usage of Phabricator and the volunteers' energies and time. You were already asked to stop it, and further creations may result in a block.
Feb 17 2023
Please don't post the same bug repeatedly.
Feb 16 2023
One more strange thing: when I unpack the Pywikibot zip version, c:\Pywikibot\scripts\i18n\.git is a subdirectory.
When I pull it from git, the same name belongs to a file, containing "gitdir: ../../.git/modules/i18n". Is it the normal behaviour?
Feb 15 2023
Thank you! :-(
In T329452#8619592, @BCornwall wrote:None of us can reproduce, you've attempted other networks, and your Git config seems reasonable. Perhaps this might be an OS-level issue. Do you have any other (non-vm) computers/OSes that you can try?
In T329452#8618432, @Dalba wrote:Does this error also occur if you clone mirror repos ( https://github.com/wikimedia/pywikibot.git and https://github.com/wikimedia/pywikibot-i18n.git )?
Google my friend told me that RPC error may be connected to firewall, so I temporarily suspended my firewall. That did not help either.
Feb 14 2023
- This is very strange, it installed the Pywikibot itself to a directory called i18n rather than core, with two differences: there is no .git in scripts\i18n subdirectory and it did not write the registration of i18n.
I installed TortoiseGit, the same result.
In T329452#8615931, @BCornwall wrote:Well, I was going for a more basic approach; My thought was that perhaps there was something odd with the client network (firewall, etc.) So I was thinking of testing other networks like phone tethering or a local library.
In T329452#8615143, @Dzahn wrote:I am wondering if you would mind deleting the local repo dir and git clone from scratch like we did, then run the "git submodule update' and see if the probem goes away.
In T329452#8614863, @BCornwall wrote:
In T329452#8613943, @Samwalton9 wrote:Have you tried running --verbose to see if this gives you more specific information?