Skip to main content

Validator for VK URLs.

Project description

vk_urls_validator

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

How method works?

  1. Add prefix "https://"
  2. Change all hostnames to "vk.com"
  3. Check URL hash for VK rules

Examples

from vk_urls_validator import validate_url

validated_url = validate_url(url='vk.com/id1')
# >> https://vk.com/id1

validated_url = validate_url(url='https://m.vk.com/id1')
# >> https://vk.com/id1

Installing

pip3 install vk_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

vk_urls_validator-0.0.4.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

vk_urls_validator-0.0.4-py3-none-any.whl (8.1 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