Skip to main content

Simple and clever analyzer, decoder, encoder ... urls on python, using requests

Project description

Simple and clever analyzer, decoder, encoder … urls on python, using requests

https://badge.fury.io/py/safeurl.svg https://travis-ci.org/FrodoTheTrue/safeurl.svg?branch=master https://coveralls.io/repos/github/FrodoTheTrue/safeurl/badge.svg?branch=master

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 hashes)

Uploaded Source

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