Simple and clever analyzer, decoder, encoder ... urls on python, using requests
Project description
Simple and clever analyzer, decoder, encoder … urls on python, using requests
Installation
$ pip install safeurl
Usage
Easy way to get real url:
from safeurl.core import getRealURL
getRealURL('http://bit.ly/1gaiW96')
# https://www.yandex.ru/
from safeurl.core import getRealURL
getRealURL(['http://bit.ly/1gaiW96', 'http://bit.ly/1gaiW96'])
# ['https://www.yandex.ru/', 'https://www.yandex.ru/']
Аlso you can find broken urls:
from safeurl.core import getRealURL
getRealURL('http://bit.ly.wrong/wrong')
# 'Failed'
from safeurl.core import getRealURL
getRealURL(['http://bit.ly.wrong/wrong', 'http://bit.ly/1gaiW96'])
# ['Failed', 'https://www.yandex.ru/']
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
safeurl-0.0.7.tar.gz
(2.0 kB
view details)
File details
Details for the file safeurl-0.0.7.tar.gz
.
File metadata
- Download URL: safeurl-0.0.7.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3703602972986d98e87b9e89057f3c4a79c54c7b19c2bfbd9e4dbda9f470fae8 |
|
MD5 | 3bbbc9829a2f11dfeb49982a3f7afd5f |
|
BLAKE2b-256 | 3c587ff4d63976a1d7bbb05eef0f14c6dffbc4982dfb55efc5e242321bdfb22c |