Skip to main content

Validator for Dzen URLs.

Project description

dzen_urls_validator

Library for validating Dzen urls and brings them to one standart.

How method works?

  1. Add prefix "https://"
  2. Change all hostnames to "dzen.ru"

Examples

from dzen_urls_validator import validate_url

validated_url = validate_url(url='dzen.ru/id/5ce671035b6e3000b303d27a/')
# >> https://dzen.ru/id/5ce671035b6e3000b303d27a

validated_url = validate_url(url='zen.yandex.ru/id/5ce671035b6e3000b303d27a')
# >> https://dzen.ru/id/5ce671035b6e3000b303d27a

Installing

pip3 install dzen_urls_validator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dzen_urls_validator-0.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

dzen_urls_validator-0.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file dzen_urls_validator-0.0.1.tar.gz.

File metadata

  • Download URL: dzen_urls_validator-0.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for dzen_urls_validator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3b6068d3f03d1e6261bb99b2271418261e58c209405b6ded71bf71a78ac5b473
MD5 725d8bd10ab532a94b93ffadc98e3f40
BLAKE2b-256 0d75a68c43ced6d9c1688769d90bd47deffb99fc3f0f7aefb4c27968bd7e0623

See more details on using hashes here.

File details

Details for the file dzen_urls_validator-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dzen_urls_validator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e666fe9ecdc7feb6bdd6159860899d4d7169b1c4c995a37bea62b630aecc78ad
MD5 953cf50f944e8a056cb14c860844a48d
BLAKE2b-256 8dc8b8a8ae36bf6bfbc5d3858ac688341a92bc9246658e17e05c615522ac07b5

See more details on using hashes here.

Supported by

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