Skip to main content

A helper library full of URL-related heuristics.

Project description

Build Status

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ural-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for ural-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c1109a6c6e2d4628ffb07627e0478f1f64120ea5d4bb2e1e00bd410102539eab
MD5 86d5761148eca0378164033599844a7f
BLAKE2b-256 840033c865c3b3dba6c71892ee6819b9ed9a0d54141f07b1868018f1bb6899b0

See more details on using hashes here.

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

Hashes for ural-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00cb8cbf8682c671216b7caf5fc1c52a4a8f89be40b8bacfcc46504c7725db2b
MD5 8d40932b659ee3dca96c2550f4dbea7d
BLAKE2b-256 289e07421244ca603ff5089752e073816d9c6ce2a6098e64470246e68cbd116c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page