Validator for Dzen URLs.
Project description
dzen_urls_validator
Library for validating Dzen urls and brings them to one standart.
How method works?
- Add prefix "https://"
- Change all hostnames to "dzen.ru"
Examples
from dzen_urls_validator import validate_url
validated_url = validate_url(url='dzen.ru/id/5ce671035b6e3000b303d27a/')
# >> https://dzen.ru/id/5ce671035b6e3000b303d27a
validated_url = validate_url(url='zen.yandex.ru/id/5ce671035b6e3000b303d27a')
# >> https://dzen.ru/id/5ce671035b6e3000b303d27a
Installing
pip3 install dzen_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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dzen_urls_validator-0.0.1.tar.gz.
File metadata
- Download URL: dzen_urls_validator-0.0.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b6068d3f03d1e6261bb99b2271418261e58c209405b6ded71bf71a78ac5b473
|
|
| MD5 |
725d8bd10ab532a94b93ffadc98e3f40
|
|
| BLAKE2b-256 |
0d75a68c43ced6d9c1688769d90bd47deffb99fc3f0f7aefb4c27968bd7e0623
|
File details
Details for the file dzen_urls_validator-0.0.1-py3-none-any.whl.
File metadata
- Download URL: dzen_urls_validator-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.7 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 |
e666fe9ecdc7feb6bdd6159860899d4d7169b1c4c995a37bea62b630aecc78ad
|
|
| MD5 |
953cf50f944e8a056cb14c860844a48d
|
|
| BLAKE2b-256 |
8dc8b8a8ae36bf6bfbc5d3858ac688341a92bc9246658e17e05c615522ac07b5
|