User talk:Rick Block/Archive2018



Wikipedia:List of Wikipedians by featured article nominations
I would like to know how Rick Bot runs List of Wikipedians by featured article nominations, so that I might do something similar in Portuguese Wikipedia. Could we talk about it? Leefeni de Karik (talk) 21:07, 11 May 2018 (UTC)
 * Sure. The code is available, see user:Rick Bot/scripts (this is not just the WBFAN update, but everything the bot does). The general idea is the bot figures out the newly promoted FAs (User:Rick Bot/scripts/newnoms) and adds them to the current year's by-year page, and then updates the by-year pages (User:Rick Bot/scripts/update byyear), and then updates the WBFAN page (User:Rick Bot/scripts/update wbfan).  These are shell scripts that are invoked by a section of the script that runs every day (User:Rick Bot/scripts/daily).  In general, the scripts fetch existing content from Wikipedia using cURL, modify some existing page content (generally using awk), and post it back using a modified version of replace.py that supports a "replace the whole file" argument.  I run these on a Mac which is fundamentally BSD Unix underneath MacOS.  They'd probably run unchanged on a Linux box.  I suspect they'd run on a Windows PC as well, but you'd have to install something like Cygwin first.  -- Rick Block (talk) 04:55, 12 May 2018 (UTC)

Wrong coding in FL update
Hi Rick, can you fix your bot's coding when it updates the WP:FL2018 page? Starting April 2018, it makes weird edits. Thanks!-- Cheetah  (talk)  02:12, 18 August 2018 (UTC)
 * Sorry for the slow response. I'll take a look at it. -- Rick Block (talk) 13:58, 23 August 2018 (UTC)
 * Should be fixed. Thanks for letting me know. -- Rick Block (talk) 19:14, 25 August 2018 (UTC)