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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6e5a5ad6b52d3e3acf927850eafe2f12d8cd091b450d01efdc395b1754dc132
|
|
| MD5 |
af612a77ee45afa645e3ec8a3840cfcf
|
|
| BLAKE2b-256 |
50ee8aaeb1e0ad7979e1bda580ab94e239036f0c3a9874e302a2ac41588adad0
|
File details
Details for the file url_location-1.0.0b0-py2.py3-none-any.whl.
File metadata
- Download URL: url_location-1.0.0b0-py2.py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ba89b60237ebfae0203f62892bb216dc0f76e7d22fe5fdd2ab9b1db898865b
|
|
| MD5 |
f44870b360977f5cfa58aa79ae98d214
|
|
| BLAKE2b-256 |
f1d95d75810a27bbe10fadf3c2a3c8ed1ca74fbafc95205c13659054d73d0104
|