Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
🔌 A Python lib to consume the most used shorteners APIs (WIP)
Python Makefile
Branch: master
Clone or download
Latest commit 018f23a May 6, 2019

README.md

THIS DOC IS FOR THE UPCOMING VERSION. DO NOT USE THE EXAMPLE CODE YET! For the old usage, please refer to this comment

   logo
pyshorteners


   Travis        

A simple URL shortening Python Lib, implementing the most famous shorteners.

Installing

pip install pyshorteners

Testing

make test

Usage

Simple example

import pyshorteners

s = pyshorteners.Shortener()
print(s.tinyurl.short('www.google.com'))
# prints 'http://tinyurl.com/HASH'

Currently Available Shorteners

  • adfly
  • bitly
  • chilpit
  • clckru
  • dagd
  • isgd
  • osdb
  • owly
  • qpsru
  • post
  • soogd
  • tinycc
  • tinyurl

Please checkout the docs for more info and examples on how to use them.

You can’t perform that action at this time.