[02:45:23] @dmehus we past due on my appeal on discord whats the update on it? [05:04:59] Miraheze meta is getting spammed [05:07:49] @raidarr just this morning? [05:09:48] https://meta.miraheze.org/wiki/User_talk:Sbcglobalhelp [05:09:49] [url] User talk:Sbcglobalhelp - Miraheze Meta | meta.miraheze.org [05:09:51] Rather strange page [05:10:05] SBC Global has been gone for a while, no? [05:12:34] The only contribution they have was just this morning [05:13:16] well yes, that page, it seems that they're advertising an email service that hasn't been open to new sign ups in nearly 20 years [05:13:22] And the page marked for deletion already [05:13:25] which is odd [05:13:33] Yeah [05:24:37] Ill take care of it [05:24:48] thanks [05:27:06] Deleted [05:29:34] Feel free to ping if it continues [05:36:51] will do, thank you [05:47:13] @zppix the level of spam is ridiculous at the moment [05:48:12] the abuse log has a new entry every minute [05:48:46] Even on meta though itself [05:48:56] I've blocked about 20 accounts [05:50:40] now I see how to filter out all the wikis globally [05:50:42] yeah, Meta has a new spam edit caught by Abuse Filter every half hour or so, that's still a lot [06:00:53] Thanks for that [06:01:11] Yeah [06:04:54] https://cdn.discordapp.com/attachments/435711390544560128/866923599360557086/Screenshot_20210720-070433.png [06:05:27] That creating pages on meta and user pages for anonymous editors are the most triggered [06:05:38] > 14,328 hits [06:05:41] Incredible [06:05:55] Seriously [06:06:46] I was wonder why an IP users will want a userpage [06:07:10] Its more of a surprise to me [06:08:39] 80% spam, 20% clueless users probably [06:09:39] Obviously is should be [06:20:15] Why arent AFs picking the spam up @RhinosF1 [06:20:50] I was wondering though [06:21:28] Could it be related to https://phabricator.miraheze.org/T7643 ? Could that be having a wider effect? [06:21:28] [url] ⚓ T7643 About the malfunction of the abuse filter | phabricator.miraheze.org [06:24:11] It should hit the global spam filter afaik [06:27:20] Is malfunctioning then [06:27:35] No cause the filter is still being hit [06:31:17] I don't know much about AF [06:32:59] @zppix: if you can give workable info to debug with I'll look [06:33:01] I'm not sure it malfunctioning though [06:34:01] I don't know about Abuse filter and why the hit counts but the action is allowed [06:38:40] ? [06:41:33] I was saying that i don't know how it works [08:18:21] Hmm [10:37:54] Really the notable example I was thinking was the community noticeboard blurb that I personally blanked out of existence [10:44:56] Thanks for helping :2266_Rainbow_heart: [10:45:45] Eh, might as well when I'm about ei [16:05:49] question about pywikibot: I'm trying to get my bot to login, but it's not working. When I run the login command i get "WARNING: Non-JSON response received from server nbdb:en for url / https://data.nonbinary.wiki/w/api.php / The server may be down. / Status code: 200" [16:05:50] [url] MediaWiki API help - NBDb | data.nonbinary.wiki [16:06:02] the server is not down and the url works when I open it on my browser [16:09:58] how did you add the wiki to PWB? through python3 pwb.py generate_family_files? [16:10:42] I couldn't get it to work so I created the family file manually. user-config was generated automatically so I assumed it was ok [16:11:05] This is the family file: python from pywikibot import family class Family(family.Family): name = 'nbdb' langs = { 'en': 'data.nonbinary.wiki', } def interface(self, code): """Return 'DataSite'.""" return 'DataSite' [16:12:25] on pastebin, if anyone's reading from IRC: https://pastebin.com/KhP0yEcn [16:12:26] [url] from pywikibot import familyclass Family(family.Family): name = 'nbdb' - Pastebin.com | pastebin.com [16:16:49] I'd suggest you generate the family file automatically [16:17:49] last time I did it automatically it didn't detect it as a data site/wikibase repo [16:17:57] but I'll try again [16:18:48] your family file is missing a few things """ This family file was manually generated. Configuration parameters: farm = miraheze Please do not commit this to the Git repository! """ from pywikibot import family class Family(family.Family): # noqa: D101 name = 'nbdb' langs = { 'en': 'data.nonbinary.wiki', } def scriptpath(self, code): return { 'en': '/w', }[code] def [16:18:49] protocol(self, code): return { 'en': 'https', }[code] [16:18:55] Cuz your wiki seems kind of tricky [16:20:59] ok, this one works, thanks! but now I'm getting errors for wikibase-related things agains [16:21:13] could you give an example? [16:21:51] relevant code is: python import pywikibot site = pywikibot.Site('en', 'nbdb') repo = site.data_repository() item = pywikibot.ItemPage(repo, 'Q1') [16:22:10] the last line is causing the error, "pywikibot.exceptions.EntityTypeUnknownError: DataSite("en", "nbdb") does not support entity type "item"" [16:23:19] Is he wiki a wikibase repo? [16:23:22] yes [16:23:37] I tried manually specifying the namespace ("Item:Q1"), same result [16:24:38] full traceback: python Traceback (most recent call last): File "X.py", line 5, in item = pywikibot.ItemPage(repo, 'Item:Q1') File "X\pywikibot\pywikibot\page\__init__.py", line 3797, in __init__ ns = site.item_namespace File "X\pywikibot\pywikibot\site\_datasite.py", line 90, in item_namespace self._item_namespace = self.get_namespace_for_entity_type('item') File "X\pywikibot\pywikibot\site\_datasite.py", [16:24:38] line 77, in get_namespace_for_entity_type raise EntityTypeUnknownError( pywikibot.exceptions.EntityTypeUnknownError: DataSite("en", "nbdb") does not support entity type "item" CRITICAL: Exiting due to uncaught exception [16:25:14] Please use a paste bin [16:25:22] sorr [16:25:27] y [16:25:38] ping RhinosF1 [16:25:44] here you go: https://pastebin.com/tw4mjApn [16:25:45] [url] Traceback (most recent call last): File "X.py", line 5, in item - Pastebin.com | pastebin.com [16:27:13] i'm not too sure how Wikibase works but doesn't it require a page to insert values in? [16:27:17] Yeah it's supposed to be Item:Q1 [16:27:18] It can only be in Q1 when you have your items on the mainspace [16:27:38] do you know if the database of deleted wikis has been updated, to avoid problems with Wikibase again? RhinosF1 [16:27:50] I tried that, same error [16:28:18] Hispano76: reception handles deleted wikis [16:29:22] Hmmm [16:29:26] these wikis were dropped a few weeks ago: https://phabricator.miraheze.org/P437 [16:29:27] [url] ✎ P437 Deleted wikis 27/06/2021 | phabricator.miraheze.org [16:29:39] er, more like a month ago [16:30:07] Yeah [16:32:04] ok Reception|away ``^^ [16:32:20] @Ondo what is the database name of the wiki in question? [16:32:59] nbdbwiki [16:35:29] Try using that as the site like site = pywikibot.Site('en', 'nbdbwiki') [16:35:36] Add wiki [16:35:49] not working [16:35:54] the wiki is added as "nbdb" in the family file [16:36:11] the database name shouldn't affect the family name [16:36:21] Hmmm [16:36:28] You never can tell [16:36:44] You can manually edit that [16:37:34] the script correctly detects and logs in to the wiki that's not the issue [16:37:47] the issue is that it looks at the wiki and doesn't see it as a wikibase installation [16:39:13] https://www.mediawiki.org/wiki/Manual:Pywikibot/Wikidata Have you read this manual? Maybe it can give you ideas [16:39:13] [url] Manual:Pywikibot/Wikidata - MediaWiki | www.mediawiki.org [16:39:23] I have [16:39:36] and the script is copied from wikidata's pywikibot documentation [16:40:04] try adding the page = line, maybe that'll get it to work or something [16:40:05] I found this on wikimedia's phabricator about the same issue: https://phabricator.wikimedia.org/T242083 [16:40:05] [url] ⚓ T242083 test_page_from_repository fails with EntityTypeUnknownException on multiple sites | phabricator.wikimedia.org [16:40:08] hmm [16:40:39] but that's related to timeouts and caching issues [16:40:51] so I don't really think it's applicable here [16:40:55] hmm I'll try creating another family file to test that script [16:41:10] is the bot logged in by any chance? [16:41:18] yes [16:41:28] oh, alright [16:41:29] I see [16:41:32] does it use a botpass? [16:41:51] waait maybe it isn't [16:41:52] hang on [16:42:05] python3 pwb.py login [16:42:31] where's the botpass file located? I think I mistyped it [16:42:45] when you log in, it asks you for the password usually [16:43:00] or else login fails and asks you to retype it [16:43:01] I already typed it, so when I log in it tried using the wrong one [16:43:22] it's not asking again [16:43:50] try renaming user-config.py to user-config.bak and retrying the setup process [16:45:29] This is why you must be very careful when typing the password [16:46:05] it was a misunderstanding with the instructions, typed the whole username insted of just the key [16:46:44] alright, the bot now logs in correctly [16:46:48] script still doesn't work [16:47:11] try adding the page = line and testing it out [16:47:18] Wait [16:47:40] on it, but that script uses a second wiki linked to the wikibase one, so I have to set up the other wiki config first [16:47:46] y [16:48:26] Before that [16:48:29] Delete the family file [16:48:29] And start everything from beginning [16:49:01] From the very start [16:49:11] the family file doesn't seem to be the issue, the issue here is the script that's being run [16:49:11] I did that already. I've tried with Agent's manual file and with the auto-generated one [16:49:13] Generate a new family file [16:49:28] I just added the DataSite thing because otherwise it won't treat it as a wikibase repo afaik [16:50:04] Hmmm [16:54:23] done, same error [19:39:28] @Ondo when I get on PC I'll see how I can help out [19:39:36] thanks! [19:40:40] This might just be a very small issue that requires concentration