Too lazy to do anymore tonight.
Cafe with no internet so this is untested. Horrendous number of API requests - need to give some idea of how long it will take and log output to a file.