faraday / unshort

Resolve final target of a shortened URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

=============================================================
unshort - Resolve final target of a shortened URL
=============================================================

Introduction
------------

Unshort resolves final target of any URL, following redirects.
A certain depth can be specified to avoid endless follow.
Primary use of `unshort` is resolving shortened URLs.

Examples
--------

Resolve a short URL to a target URL

>>> from unshort import resolve
>>> resolve("https://goo.gl/c5v8aM")
'https://github.com/faraday/unshort'


Contact
-------

Author: Cagatay Calli <ccalli@gmail.com>
Issue tracker: https://github.com/faraday/unshort/issues


LICENSE
---------

BSD license. See the LICENSE file in the top level of the distribution

About

Resolve final target of a shortened URL

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 100.0%