A helper library full of URL-related heuristics.
Project description
Ural
A helper library full of URL-related heuristics.
Installation
You can install ural
with pip with the following command:
pip install ural
Usage
normalize_url
Function normalizing the given url by stripping it of usually non-discriminant parts such as irrelevant query items or sub-domains etc.
This is a very useful utility when attempting to match similar urls written slightly differently when shared on social media etc.
from ural import normalize_url
url('https://www2.lemonde.fr/index.php#anchor')
>>> 'lemonde.fr'
Arguments
- url string: URL to normalize.
todo: ensure protocol
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
ural-0.0.2.tar.gz
(2.5 kB
view details)
Built Distribution
ural-0.0.2-py3-none-any.whl
(3.1 kB
view details)
File details
Details for the file ural-0.0.2.tar.gz
.
File metadata
- Download URL: ural-0.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c4c7a2b3839420c2e8e561a7cfff12399d7bb686f7adaf7750a1d934d8017ac |
|
MD5 | 65011d52a763c1beb3f4742f66d7ee6a |
|
BLAKE2b-256 | 8aec64b8975bb09fccb5c6d798f9afb8600ff2c2a4a2626e613a0ca1e0261f0e |
File details
Details for the file ural-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ural-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fcc603d6103929603229c47364ce9cd4fa6758285fa389cd79b007864aed6fc |
|
MD5 | 12e02e52a801676d42dfd006a8f3c5dc |
|
BLAKE2b-256 | 31c651d78f1fad0c7b85b65b5479d5cc28bc9260015c2ec6f74bb8eb259d21a4 |