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

Uploaded Source

Built Distribution

vk_urls_validator-0.0.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vk_urls_validator-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1b4cfd0baa60d0eabf5f6154db3a0196e1fd5c757e1962693094157abddd86b4
MD5 e1b2b3cd87fad2971afbf5175dea6655
BLAKE2b-256 55dbfeefcb30fba81cd8b44e636613a443952ca30165f1bf5776e66257266d0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vk_urls_validator-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2890a9c8558f113b20c73efac23a270f862802ed7808d9ec5d5e1153c713b47
MD5 2c9e0a8bfcc44e6f0d1d8af66681ca5d
BLAKE2b-256 ea324063bf88274c00c36e0bbdcdf4bdfe05dd003278efcef1abdf2fc23fcd1e

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