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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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