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
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 ural-0.0.1.tar.gz.
File metadata
- Download URL: ural-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1109a6c6e2d4628ffb07627e0478f1f64120ea5d4bb2e1e00bd410102539eab
|
|
| MD5 |
86d5761148eca0378164033599844a7f
|
|
| BLAKE2b-256 |
840033c865c3b3dba6c71892ee6819b9ed9a0d54141f07b1868018f1bb6899b0
|
File details
Details for the file ural-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ural-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00cb8cbf8682c671216b7caf5fc1c52a4a8f89be40b8bacfcc46504c7725db2b
|
|
| MD5 |
8d40932b659ee3dca96c2550f4dbea7d
|
|
| BLAKE2b-256 |
289e07421244ca603ff5089752e073816d9c6ce2a6098e64470246e68cbd116c
|