Unshortens adf.ly, lnx.lu, sh.st, and any 301 redirected shortener urls
Project description
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
Lnx.lu
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
History
0.1.0 (2013-10-08)
First release.
0.1.1 (2013-10-11)
Added support for custom adf.ly domains via the type=’adfly’ variable.
0.1.2 (2013-10-11)
Fixed bug with t.co not working.
0.1.3 (2013-10-11)
Added a timeout parameter
0.1.4 (2013-10-12)
Added support for p.ost.im.
Fixed blocking issue with direct links to file downloads
0.1.6 (2014-02-01)
Fixed adfoc.us issues resulting from changes to their site
Fixed linkbucks.com issues resulting from changes to their site
0.1.7 (2014-02-03)
Fixed linkbucks.com issues resulting from additional changes to their site
0.1.8 (2014-02-04)
Fixed linkbucks.com issues resulting from additional changes to their site
0.1.9 (2014-02-08)
Switched linkbucks.com to use selenium PhantomJS driver due to ongoing challenges with their site
0.2.0 (2014-02-25)
Removed PyV8 requirement for adf.ly
Added ay.gy domain for adf.ly regex
Added sh.st support
0.2.1 (2014-05-18)
Removed tests for linkbucks.com and adfoc.us. Support has been temporarly removed.
Merged Debian Python 3.2 fix by anaconda
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file unshortenit-0.2.1.tar.gz
.
File metadata
- Download URL: unshortenit-0.2.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a923b7dae3e4cbe185475a23a87c512b7b44bfb11922cf773927057e5a7a8e |
|
MD5 | 35b1ab6d96d20262cdc8202a0527a045 |
|
BLAKE2b-256 | 80c7939b6a2b951d3e3c69c3b4222908de8ad9d05ace42713bbaa6b76243a2fe |