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

Built Distribution

vk_urls_validator-0.0.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file vk_urls_validator-0.0.3.macosx-10.9-universal2.tar.gz.

File metadata

File hashes

Hashes for vk_urls_validator-0.0.3.macosx-10.9-universal2.tar.gz
Algorithm Hash digest
SHA256 e1a27621eb62dd27a504513515db8ac843a9c5e1824db8bee1c7f8af1e9b46fa
MD5 62064c88be87ab2fa9d821ec1c3ddc63
BLAKE2b-256 f5dd59968f5e08c934a454c14d642858c9699b72e7119b87049a69d702774a49

See more details on using hashes here.

File details

Details for the file vk_urls_validator-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for vk_urls_validator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9d584efbf5d49f7ee5f9d121a14362493498e6a3c8873578339d07420a0b7eba
MD5 1ac29a4ff1cfa8f388f17eb1c81271c5
BLAKE2b-256 f53c0f60ce2ddb6552465e01390dae201759ca32cb4a27f9f9e899f2828e925a

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