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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file vk_urls_validator-0.0.4.tar.gz.

File metadata

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

File hashes

Hashes for vk_urls_validator-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a4ee0e134e022996ffcd9ec27ab7b159b78a13e1281764d69555084763096867
MD5 dc9cc7fb63e8e4cf4f09398b8415e400
BLAKE2b-256 9ee46d2c1511645f87fbcedfd603fc3e5ce0128e348d9cc86e150626c6db59d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vk_urls_validator-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e8c370c75feb926632784c265c5e9337457cde2c8762b328dd8425904c49b898
MD5 1ebfaa4c3e9f67fa6da5f2e7ad78c1b5
BLAKE2b-256 93ff1f1f9ab3d341d0055c8274ec7bfb06ece7da2663a29089345502f0e16e49

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