A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/daxeel/TinyURL-Python below:

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

tinyurl-python

Python module to create short links from tinyurl.com

Installation
git clone https://github.com/daxeel/TinyURL-Python.git
cd TinyURL-Python
python setup.py install
Usage
>>> import tinyurl
>>> 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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4