Python Scraping Data From the Web Additional Scraping Tasks Scraping APIs

Gari Merrifield
Gari Merrifield
9,546 Points

More of a comment than a question, ISO code ESH not recognized

The seems to die when it hits the code ESH near the bottom of the file. Manually trying ESH or EH returns a message of "Invalid value", which we have not set up this script to deal with, so it crashes out with errors that seem unrelated, where it says a "'NoneType' object has no attribute 'get_text'"

I have verified that is only the one code ESH ( for Western Sahara ), that is getting this reply, so you may want to remove the line ESH from the file, and run the script again if you want to see it run without errors.