[06:43:35] [telegram] If a Wikimedia wiki is closed, but has some pages, does anyone have the permission to delete pages there? Stewards perhaps? [07:01:05] @amire80: stewards should have access, yes [17:27:31] [telegram] hi folx, I've been struggling with a script which is using the API to edit a few pages. My issue is with fetching the CSRF token. I'm getting a 200 response but the value is empty`'csrftoken': '+\\'`. [17:27:32] [telegram] This is my code: [17:27:33] [telegram] ``` [17:27:35] [telegram] [17:27:36] [telegram] PARAMS_2 = { [17:27:38] [telegram] "action": "query", [17:27:39] [telegram] "meta": "tokens", [17:27:41] [telegram] "format": "json" [17:27:42] [telegram] } [17:27:44] [telegram] [17:27:45] [telegram] R = S.get(url=URL, params=PARAMS_2) [17:27:47] [telegram] R.json()``` [17:27:48] [telegram] [17:27:50] [telegram] [17:27:51] [telegram] My bot has full rights in the wiki and the getting the token via browser works. Any help is much appreciated :) [17:28:52] [telegram] `+\` is the CSRF token for anonymous users, so that sounds like you’re not logged in or something’s wrong with the session [17:28:53] [telegram] different cookies? IIRC CSRF is approximately empty if you're an IP. (re @igorabsorto: hi folx, I've been struggling with a script which is using the API to edit a few pages. My issue is with fetching the CSRF token...) [17:42:04] [telegram] Uhm, but I'm logging in before through the API. but this are good tips, I have to look into that, see if the login is really working [17:46:39] [telegram] thanks a lot @lucaswerkmeister and @jeremy_b ;) [17:47:10] [telegram] adding the `assert=user` parameter to any requests after logging in might also be a good idea [17:47:31] [telegram] that way, MediaWiki will return an error if the request is (for whatever reason) actually anonymous, instead of making an anonymous edit [17:48:15] [telegram] didn't know about this param [17:48:28] [telegram] very useful indeed [19:28:36] [telegram] <戴晓灵> xrl t.me/+F7oZyUgJf-I2NjI1 [19:32:02] [telegram] <方蕙妍> nna t.me/+F7oZyUgJf-I2NjI1 [20:13:09] [telegram] Hi, Who wants to fix this :) : https://tools-static.wmflabs.org/bridgebot/27cf6715/file_25693.jpg [20:13:46] [telegram] [[en:Kreuzberg]] [20:20:14] [telegram] Just disable the new vector :) [20:20:31] [telegram] I think this is already documented in its technical limitations [20:21:18] [telegram] https://www.mediawiki.org/wiki/Reading/Web/Desktop_Improvements/Features/Language_switching#Limitations [20:21:25] [telegram] Actually i like new vector but thanks for your response. (re @Thecladis: Just disable the new vector :)) [20:36:33] [telegram] <梁丘小玉> dxv t.me/+y1X38vil-Cc2MGY1