Wikipedia:Bots/Requests for approval/TNTBot 5


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Bots/Noticeboard. The result of the discussion was

TNTBot 5
Operator:

Time filed: 12:31, Friday, May 12, 2023 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available: https://github.com/theresnotime/wp-twitter-archive

Function overview: Adds  and   to  references where the Tweet has already been archived to IA but the parameter has not been set

Links to relevant discussions (where appropriate): Special:Permalink/1154414160

Edit period(s): daily

Estimated number of pages affected: > 10,000

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: The bot uses a PetScan report of all mainspace pages which use and checks if   is already supplied in the citation — if not, the bot then uses the Internet Archive API to see if a snapshot already exists. If a snapshot exists, the bot adds  to the  template. If a snapshot does not exist, the bot currently skips the page.

Discussion

 * I've done a monitored test edit via the bot to "Weird Al" Yankovic — TheresNoTime (talk • they/them) 12:43, 12 May 2023 (UTC)
 * Thanks for running this task! Frostly (talk) 23:35, 12 May 2023 (UTC)
 * This task seems to overlap with User:GreenC bot's WaybackMedic task - do we really need a bespoke bot? * Pppery * it has begun... 03:00, 13 May 2023 (UTC)
 * WaybackMedic doesn't currently parse cite tweet. The above task is missing url-status. In most cases it will still be a live link, without url-status it will default as if the link is dead. Also there have been reports Tweets saved at Wayback sometimes look incorrect, in which case the archive.today version would be better. Some extended tests will show. --  Green  C  03:36, 13 May 2023 (UTC)
 * Quite possibly not! I'm running it now (see below) and it seems a lot of the pages with "issues" I found while writing this bot have already been fixed — I'd be more than happy to withdraw this request if there's really no need, but noting what said there could be some edge cases where this would be useful... Guess we'll see  — TheresNoTime (talk • they/them) 08:54, 17 May 2023 (UTC)
 * Primefac (talk) 06:48, 13 May 2023 (UTC)
 * — TheresNoTime (talk • they/them) 08:54, 17 May 2023 (UTC)
 * Looks like was correct — whilst creating and testing this bot, there were consistent cases where edits would need to be made. Running it today shows 0 required edits out of the 10,000 checked instances, so I think its fair to say other bots are doing this task sufficiently
 * Please mark this as, and many thanks to all for their comments — TheresNoTime (talk • they/them) 09:23, 17 May 2023 (UTC)
 * The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at Bots/Noticeboard.