Skip to main content

Validator for Odnoklassniki URLs.

Project description

odnoklassniki_urls_validator

Library for validating Odnoklasnsiki urls and brings them to one standart.

How method works?

  1. Add prefix "https://"
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odnoklassniki_urls_validator-0.0.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file odnoklassniki_urls_validator-0.0.1.tar.gz.

File metadata

File hashes

Hashes for odnoklassniki_urls_validator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 72956e0ac5f1780a4e3f0b38340c5af0a136e3cfc26afe5ad8a1709b3a5ba47b
MD5 6d6b4b53f69d34b1ccebbbbdc7e1fa48
BLAKE2b-256 bf0692bcfd4daff344389107fd59f2c1e29edc3c396ea0e4640e5bc1066154b0

See more details on using hashes here.

File details

Details for the file odnoklassniki_urls_validator-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for odnoklassniki_urls_validator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c0b6ae494402aa9b7e6adbe0ca9efbe98191da151a2865e46ceb9257fa67694
MD5 d5090e540fda2df41d622cd047ff8394
BLAKE2b-256 790c1f1239994804974fd202d1df9bfe743cf606a296045ddb7af61108ee4661

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