For T292270: Update "number of Wikimedia wikis used on" for popular gadgets on meta wiki (September 2022) we used the Python code in P35447 to get the list in P35446 (list to be created once a year).
However, P35447 uses old and manual parsing code to get gadget definitions and parse them.
It should use the MediaWiki Action API instead to query gadgets, per P35447#146994.
Once it has been ported (and if that's before 10/2023), update T320712 to point to the updated Python script.