Skip to content

Unshortens ad based url's and 301 redirects. Supports adf.ly, lnx.lu, linkbucks.com, and adfoc.us

License

Notifications You must be signed in to change notification settings

Dreysman/unshortenit

 
 

Repository files navigation

=============================== unshortenit

Unshortens ad-based urls and 301 redirects. Supports adf.ly, lnx.lu, and sh.st.

  • Linkbucks.com and adfoc.us support temporarly removed.

Features

  • Supports unshortening the following ad-based shortners:
    • Adf.ly and related subdomains
    • Custom adf.ly domains by passing the type='adfly' parameter
    • Sh.st
  • Supports any 301 redirected urls
  • Python 2.7, 3.3, and 3.4 support

Usage

import unshortenit
unshortened_uri,status = unshortenit.unshorten('http://ul.to')

unshortenit.unshorten will return a tuple (unshortened_uri,status)

unshortened_uri will contain the unshortened uri. If you pass in a non-shortener url it will return the original url. status will contain the status code or any error messages

Installation

pip install unshortenit

About

Unshortens ad based url's and 301 redirects. Supports adf.ly, lnx.lu, linkbucks.com, and adfoc.us

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.2%
  • Makefile 7.8%