The script uses Selenium webdriver to control Firefox (as suggested by @jacwah@jacwah), along with some read & write instructions and a bit of regex to isolate URLs to be used by Selenium to automate getting the information from Wikimedia.
Note that DebugDebug is a useful decorator designed by @Ethan Bierlein@Ethan Bierlein