FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python module to create short links from tinyurl.com

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL