Skip to main content

Unshortens,,, linkbucks,, and any 301 redirected shortener urls

Project description

Unshortens ad-based urls and 301 redirects. Supports,,,, and


  • Supports unshortening the following ad-based shortners:
    • and related subdomains
    • Custom domains by passing the type=’adfly’ parameter
    • and related subdomains (Selenium library with PhantomJS required)
  • Supports any 301 redirected urls
  • Python 2.7 and 3.3 support


import unshortenit unshortened_uri,status = unshortenit.unshorten(’’)

> 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


pip install unshortenit

In order to enable support you will need to install selenium along with PhantomJS.


0.1.0 (2013-10-08)

  • First release.

0.1.1 (2013-10-11)

  • Added support for custom domains via the type=’adfly’ variable.

0.1.2 (2013-10-11)

  • Fixed bug with not working.

0.1.3 (2013-10-11)

  • Added a timeout parameter

0.1.4 (2013-10-12)

  • Added support for
  • Fixed blocking issue with direct links to file downloads

0.1.6 (2014-02-01)

  • Fixed issues resulting from changes to their site
  • Fixed issues resulting from changes to their site

0.1.7 (2014-02-03)

  • Fixed issues resulting from additional changes to their site

0.1.8 (2014-02-04)

  • Fixed issues resulting from additional changes to their site

0.1.9 (2014-02-08)

  • Switched to use selenium PhantomJS driver due to ongoing challenges with their site

0.2.0 (2014-02-25)

  • Removed PyV8 requirement for
  • Added domain for regex
  • Added support

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for unshortenit, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size unshortenit-0.2.0.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page