title: How to get all regions of every city with python?
body: <p>I want to get all localities/regions of a city with python. Currently I have all countries and their provinces of them.</p>
  
  <p>But now I don't know how to get all regions of every city.
  I tested many libraries such as pycountry, geograpy, etc...
  but I haven't found it yet.</p>
  
  <pre><code>import pycountry
  countries = {}
  for country in all_countries:
      subdivisions = list(pycountry.subdivisions.get(country_code = country.alpha_2))
      provinces = [sub for sub in subdivisions if sub.type == "Province"]
      all_provinces = {province.name:{"code":province.code,"cities":{}} for province in provinces}
  
      countries.update({country.name:{"alpha_2":country.alpha_2,
                        "alpha_3":country.alpha_3,
                        "numeric":country.numeric,
                        #"official_name":country.official_name
                        "provinces":all_provinces
                      }})
  </code></pre>