code: def check(self, url_data):
          
          location = get_location(url_data.host)
          if location:
              url_data.add_info(_("URL is located in %(location)s.") %
              {"location": _(location)})
docs: Try to ask GeoIP database for country info.