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.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vk_urls_validator-0.0.1.tar.gz
  • Upload date:
  • Size: 7.1 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.1.tar.gz
Algorithm Hash digest
SHA256 55311e974167f542e94d690eb4286f07866cbdf64c7c0aff3a94793b01ebd30d
MD5 55327875fcf28c3fc81f2e445e2bd8ed
BLAKE2b-256 b09161fa8214d820aff6872403735ae2ca55916525108febd7e865ab78ee9e66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vk_urls_validator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 519921f369e0571c443296e77bb3cd125425ede30b6e90e77923f60305464345
MD5 a90dbeb2d9a8d2c763e6df22eb52b58b
BLAKE2b-256 fc5d0d93bbd16bceebf99b78dbb7c520b8984166b7633fc210f8937af8f84f91

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