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.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
ural-0.0.1-py3-none-any.whl
(3.0 kB
view hashes)