# url_location
This library can be used to retrieve the country a URL belongs to by processing its domain.
## Usage
```python
from url_location import URLLocation
url = "https://www.exampleurl.com.ec/something-else"
ul = URLLocation()
country = ul.processUrl(url)
print(country)
```
Output
```console
ECU
```
When a URL canĀ“t be processed the result will be <UNK> like bellow:
```python
url = "https://www.exampleurl.com/something-else"
ul = URLLocation()
country = ul.processUrl(url)
print(country)
```
Output
```console
None
```
Raw data
{
"_id": null,
"home_page": "https://github.com/....",
"name": "url-location",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "url,country,url_location",
"author": "Eduardo Tuteggito Rosero",
"author_email": "zerhiphop@live.com",
"download_url": "https://files.pythonhosted.org/packages/50/ee/8aaeb1e0ad7979e1bda580ab94e239036f0c3a9874e302a2ac41588adad0/url_location-1.0.0b0.tar.gz",
"platform": null,
"description": "# url_location\n\nThis library can be used to retrieve the country a URL belongs to by processing its domain.\n\n## Usage\n\n```python\nfrom url_location import URLLocation\n\nurl = \"https://www.exampleurl.com.ec/something-else\"\nul = URLLocation()\ncountry = ul.processUrl(url)\nprint(country)\n```\n\nOutput\n```console\nECU\n```\n\nWhen a URL can\u00b4t be processed the result will be <UNK> like bellow:\n\n```python\nurl = \"https://www.exampleurl.com/something-else\"\nul = URLLocation()\ncountry = ul.processUrl(url)\nprint(country)\n```\n\nOutput\n```console\nNone\n```\n\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Package to retrieve the iso 3 short code of the country to which a URL belongs",
"version": "1.0.0b0",
"split_keywords": [
"url",
"country",
"url_location"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "f44870b360977f5cfa58aa79ae98d214",
"sha256": "87ba89b60237ebfae0203f62892bb216dc0f76e7d22fe5fdd2ab9b1db898865b"
},
"downloads": -1,
"filename": "url_location-1.0.0b0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "f44870b360977f5cfa58aa79ae98d214",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 9954,
"upload_time": "2022-12-09T13:27:51",
"upload_time_iso_8601": "2022-12-09T13:27:51.164665Z",
"url": "https://files.pythonhosted.org/packages/f1/d9/5d75810a27bbe10fadf3c2a3c8ed1ca74fbafc95205c13659054d73d0104/url_location-1.0.0b0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "af612a77ee45afa645e3ec8a3840cfcf",
"sha256": "a6e5a5ad6b52d3e3acf927850eafe2f12d8cd091b450d01efdc395b1754dc132"
},
"downloads": -1,
"filename": "url_location-1.0.0b0.tar.gz",
"has_sig": false,
"md5_digest": "af612a77ee45afa645e3ec8a3840cfcf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9264,
"upload_time": "2022-12-09T13:27:53",
"upload_time_iso_8601": "2022-12-09T13:27:53.314750Z",
"url": "https://files.pythonhosted.org/packages/50/ee/8aaeb1e0ad7979e1bda580ab94e239036f0c3a9874e302a2ac41588adad0/url_location-1.0.0b0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-09 13:27:53",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "url-location"
}