Skip to main content

Package to retrieve the iso 3 short code of the country to which a URL belongs

Project description

url_location

This library can be used to retrieve the country a URL belongs to by processing its domain.

Usage

from url_location import URLLocation

url = "https://www.exampleurl.com.ec/something-else"
ul = URLLocation()
country = ul.processUrl(url)
print(country)

Output

ECU

When a URL can´t be processed the result will be like bellow:

url = "https://www.exampleurl.com/something-else"
ul = URLLocation()
country = ul.processUrl(url)
print(country)

Output

None

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

url_location-1.0.0b0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

url_location-1.0.0b0-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file url_location-1.0.0b0.tar.gz.

File metadata

  • Download URL: url_location-1.0.0b0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for url_location-1.0.0b0.tar.gz
Algorithm Hash digest
SHA256 a6e5a5ad6b52d3e3acf927850eafe2f12d8cd091b450d01efdc395b1754dc132
MD5 af612a77ee45afa645e3ec8a3840cfcf
BLAKE2b-256 50ee8aaeb1e0ad7979e1bda580ab94e239036f0c3a9874e302a2ac41588adad0

See more details on using hashes here.

File details

Details for the file url_location-1.0.0b0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for url_location-1.0.0b0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 87ba89b60237ebfae0203f62892bb216dc0f76e7d22fe5fdd2ab9b1db898865b
MD5 f44870b360977f5cfa58aa79ae98d214
BLAKE2b-256 f1d95d75810a27bbe10fadf3c2a3c8ed1ca74fbafc95205c13659054d73d0104

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page