I recently needed to solve a problem dealing with a list of ISO2 Coded countries that have provinces instead of states. Turns out I could’nt find a nice list of these codes, so I decided to make it myself and in the process learn a little bit about web scraping with Python.
Many web forms involve addresses. Registering an account or entering shipping information. When dealing with international addresses you might run into problems with countries that have provinces instead of states, or zip codes or telephone numbers having different rules. I ran into the former at work recently.