Validator for VK URLs.
Project description
vk_urls_validator
Library for validating VK urls and brings them to one standart.
How method works?
- Add prefix "https://"
- Change all hostnames to "vk.com"
- 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
Close
Hashes for vk_urls_validator-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8c370c75feb926632784c265c5e9337457cde2c8762b328dd8425904c49b898 |
|
MD5 | 1ebfaa4c3e9f67fa6da5f2e7ad78c1b5 |
|
BLAKE2b-256 | 93ff1f1f9ab3d341d0055c8274ec7bfb06ece7da2663a29089345502f0e16e49 |