[02:20:46] Is there someone online who could help with my login issue described in https://phabricator.wikimedia.org/T309156 ? [12:55:49] Hello! I have a simple question about Pywikibots, not sure if this is the right place to ask it: [12:55:49] [12:55:51] Is there any word that Pywikibot scripts recognize that will make them ignore certain pages if put in them? For example like "" or something similar. [12:58:30] If it is the right place, I want to know if there is any machine-readable spec of the MediaWiki API. [13:07:33] @su_Theta, at the risk of sounding absurd but I suppose you've already read all the pages and subpages related to this (https://www.mediawiki.org/wiki/API:Main_page), no? [13:07:51] No, I haven't. (re @Klein: @su_Theta, at the risk of sounding absurd but I suppose you've already read all the pages and subpages related to this, no?) [13:08:36] I wish I could direct you to the right exact page but I've rarely used the API myself given that the bot I operate is a Pywikibot one. [13:08:53] Right exact page for what? (re @Klein: I wish I could direct you to the right exact page but I've rarely used the API myself given that the bot I operate is a Pywikibo...) [13:09:40] For what you are looking for right now. The information about _machine-readable specs in regard to the MediaWiki API._ [13:10:06] So have you every seen one? You can describe how it looked. I can try finding it myself. (re @Klein: For what you are looking for right now. The information about machine-readable specs in regard to the MediaWiki API.) [13:18:10] Uhm, I have read most of them but I'm not really sure what exactly you are looking for because I'm not that agile with APIs in general so I don't know where to point you. :/ [13:18:26] What I've done in the post have been simple post and get requests. [13:18:29] I mean a schema like Telegram's APIs. [13:18:41] Same. I would like to enhance that. (re @Klein: What I've done in the post have been simple post and get requests.) [13:19:54] https://core.telegram.org/schema/json [13:20:02] Here's an example of what I mean. [13:21:23] Ah, got you. No, I've never encountered a full schema before. [13:22:18] https://www.mediawiki.org/wiki/API:REST_API/Reference This is what I've mostly used myself. [13:22:42] That's a little better than the actual API. (re @Klein: https://www.mediawiki.org/wiki/API:REST_API/Reference This is what I've mostly used myself.) [13:23:22] Eh, I understand. [13:24:06] It also provides example scripts so... Another +. [13:24:07] I don't know why the developers don't focus on knowing the importance of having a schema. Half of the Pywikibot's code would be generated that time. [13:24:54] We would also be able to build easily maintainable bots with TypeScript (with generated types). [13:25:18] Anyway, I think I will try scraping the `?action=help` responses. [13:27:36] Oh, I'm so stupid. I just found out `paraminfo`. [13:28:13] Maybe one of the ToolForge admins can provide better support on the matter. In my experience I've usually seen that generally things do exist but documentation for them doesn't or is scattered and buried deep down. [13:31:41] Well, there you go. Better than nothing. I'd also suggest that if you're not already doing it, utilize Google in these cases. [13:32:12] This (https://test.wikipedia.org/w/api.php?action=paraminfo&modules=*) was what I was looking for :) [13:33:02] Oh, nice. I hadn't encountered that page before. Well, glad i could help indirectly. :P [13:34:21] If anyone can help with this, please ping me. :) (re @Klein: Hello! I have a simple question about Pywikibots, not sure if this is the right place to ask it: [13:34:22] [13:34:24] Is there any word that Pywikib...) [13:37:38] Ignore certain pages in what? (re @Klein: Hello! I have a simple question about Pywikibots, not sure if this is the right place to ask it: [13:37:39] [13:37:40] Is there any word that Pywikib...) [14:16:32] I use this (https://www.mediawiki.org/wiki/Manual:Pywikibot/replace.py) script in my bot. I'm asking if pywikibots understand any of these templates (https://en.wikipedia.org/wiki/Template:Bots) or anything similar. (re @su_Theta: Ignore certain pages in what?) [14:17:17] Something you can put in a wikipage and the bot will understand not to touch that page. [14:18:55] https://i.ibb.co/16CYVkY/image.png [14:19:05] This is what `Template:Bots` says. [14:19:14] It should be fine by itself? (re @Klein: I use this script in my bot. I'm asking if pywikibots understand any of these templates or anything similar.) [14:23:19] Hmm... Interesting... Apparently I had never seen that. LOL But the link for the code change doesn't work. :/ I'm curios to see when it was implemented, if that had always been there or not. [14:23:38] But thank you, I guess. hahaha :D [14:27:36] I saw the page history page and Pywikibots have been compliant to those templates for some years now apparently so it doesn't matter much. I just have missed it. [17:17:02] does anyone know off the top of their head (ignore if not) whether the labs replicas give any way to access wikitext? or are the dumps / APIs the only way to get access to a page's wikitext from toolforge/cloudvps/paws? [17:17:36] revision table? [17:17:36] isaacj: nope, wikitext is not accessible from the replicas at all for various reasons [17:18:13] taavi: thanks! that's what i assumed (too big/messy in the same way that accessing commons images is really hard) [17:18:31] chicocvenancio: i think that's just metadata about the wikitext/edit unfortunately [17:18:45] i want the raw text of the page [17:34:44] isaacj: you can get that from the Action API, but as others have said not from the wiki replicas. We do not replicate the external storage tables where revisions are actually stored in production due to the very, very large size of that dataset. [18:02:41] thanks bd808 for the clarification! APIs it is [19:32:59] !log cloudvirt1029 restarted nova due to network outage [19:33:00] balloons: Unknown project "cloudvirt1029" [20:01:01] !log admin cloudvirt1029 restarted nova due to network outage [20:01:03] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Admin/SAL [20:01:38] !log admin clean up cinder backup a bit, restart service due to network outage [20:01:40] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Admin/SAL [21:51:26] For anyone that saw me rambling about mwcli here yesterday, the latest release is now out and has this tools command if you want to try