Validator for Odnoklassniki URLs.
Project description
odnoklassniki_urls_validator
Library for validating Odnoklasnsiki urls and brings them to one standart.
How method works?
- Add prefix "https://"
- Change all hostnames to "ok.ru"
Examples
from odnoklassniki_urls_validator import validate_url
validated_url = validate_url(url='www.ok.ru/group/50582132228315/')
# >> https://ok.ru/group/50582132228315
validated_url = validate_url(url='http://ok.ru/group/50582132228315')
# >> https://ok.ru/group/50582132228315
Installing
pip3 install odnoklassniki_urls_validator
Project details
Release history Release notifications | RSS feed
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 odnoklassniki_urls_validator-0.0.1.tar.gz
.
File metadata
- Download URL: odnoklassniki_urls_validator-0.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72956e0ac5f1780a4e3f0b38340c5af0a136e3cfc26afe5ad8a1709b3a5ba47b |
|
MD5 | 6d6b4b53f69d34b1ccebbbbdc7e1fa48 |
|
BLAKE2b-256 | bf0692bcfd4daff344389107fd59f2c1e29edc3c396ea0e4640e5bc1066154b0 |
File details
Details for the file odnoklassniki_urls_validator-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: odnoklassniki_urls_validator-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.5 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 | 7c0b6ae494402aa9b7e6adbe0ca9efbe98191da151a2865e46ceb9257fa67694 |
|
MD5 | d5090e540fda2df41d622cd047ff8394 |
|
BLAKE2b-256 | 790c1f1239994804974fd202d1df9bfe743cf606a296045ddb7af61108ee4661 |