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.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b4cfd0baa60d0eabf5f6154db3a0196e1fd5c757e1962693094157abddd86b4 |
|
MD5 | e1b2b3cd87fad2971afbf5175dea6655 |
|
BLAKE2b-256 | 55dbfeefcb30fba81cd8b44e636613a443952ca30165f1bf5776e66257266d0b |
File details
Details for the file vk_urls_validator-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: vk_urls_validator-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.3 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 | c2890a9c8558f113b20c73efac23a270f862802ed7808d9ec5d5e1153c713b47 |
|
MD5 | 2c9e0a8bfcc44e6f0d1d8af66681ca5d |
|
BLAKE2b-256 | ea324063bf88274c00c36e0bbdcdf4bdfe05dd003278efcef1abdf2fc23fcd1e |