Initial rewrite with requests, before trying to get this to actually work on new website (hence, this code is entirely untested)