Works with Coursera's updated website. Added HTTPError handling as well.