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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ee0e134e022996ffcd9ec27ab7b159b78a13e1281764d69555084763096867 |
|
MD5 | dc9cc7fb63e8e4cf4f09398b8415e400 |
|
BLAKE2b-256 | 9ee46d2c1511645f87fbcedfd603fc3e5ce0128e348d9cc86e150626c6db59d1 |
File details
Details for the file vk_urls_validator-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: vk_urls_validator-0.0.4-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8c370c75feb926632784c265c5e9337457cde2c8762b328dd8425904c49b898 |
|
MD5 | 1ebfaa4c3e9f67fa6da5f2e7ad78c1b5 |
|
BLAKE2b-256 | 93ff1f1f9ab3d341d0055c8274ec7bfb06ece7da2663a29089345502f0e16e49 |