◐ Shell
clean mode source ↗

GitHub - daxeel/TinyURL-Python: Python module to create short links from tinyurl.com

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

tinyurl-python

Python module to create short links from tinyurl.com

Installation

git clone https://github.com/daxeel/TinyURL-Python.git

Usage

>>> print tinyurl.shorten("www.abc.com", "xyz")
>>> http://www.abc.com/xyz
>>> print tinyurl.shorten("www.abc.com", "")
>>> http://www.abc.com/wxghf

Here, tinyurl has shorten function which takes two parameters. First is URL which you want to short and second one is custome name.

Leave blank second argument if you want random alias.