[07:47:46] Ivy: yes, I saw and watchlisted. Reading for next weekend I guess. [08:19:12] anyone familiar with lua able to give an opinion on some changes? change to template to allow conversion from roman numerals to arabic e.g. MMXVIII to 2018. Currently template only works one way from arabic to roman. Not a controversial change but need opinion on code diffs I guess. https://en.wikipedia.org/wiki/Template_talk:Roman#Suggested_Edit [08:19:49] well change was to module I mean not template. [19:10:40] Yo [19:12:38] mo [19:13:30] Does anyone know a way to only load the first paragraph of text in a Wikipedia article [19:13:33] en-wiki [19:13:57] What do you mean by "text"? [19:15:43] Not wikitext [19:15:49] Like, words [19:16:44] Often called plain text [19:17:29] You can try getting the html from section=0 with https://www.mediawiki.org/wiki/API:Parsing_wikitext and then feed the HTML to a library to get plain text [19:17:46] Or there is https://www.mediawiki.org/wiki/Extension:TextExtracts/it [21:53:20] Anyone know how long an IP is blocked after doing too many API requests. I am just testing a library and now I am cut of from the Wikidata API [21:59:12] tobias47n9e: hmm, what error message do you get? [22:03:47] MatmaRex: Currently my library only returns ```Request(\"\")\n``` [22:05:25] Will have to debug it tomorrow. Too lat today :) For context the tests are for this library: https://crates.io/crates/wkdr [22:05:57] tobias47n9e: i think it's unlikely you have been blocked (unless you've been actually testing by editing pages, in which case your account might have been blocked for vandalism etc.). you'd have to send a pretty insane amount of traffic to have your IP blocked from viewing things. [22:06:23] but it's hard to tell what the problem might be without seeing the actual API requests you're making and API responses you're getting. [22:07:42] MatmaRex: Oh good to know. I probably scrwed something up in my local setup. The tests run fine on the CI server: https://gitlab.com/tobias47n9e/wkdr/-/jobs/53536280 [22:08:01] Thanks for your reassurance. Will get to the bottom of this tommorow :) [22:08:16] me -> bed :|