Works with Coursera's updated website; also, added HTTPError handling