Skip to content

Where does that shortened URL point to? Python module to access expandurl API for unshortening URLs

License

BSD-2-Clause, GPL-3.0 licenses found

Licenses found

BSD-2-Clause
LICENCE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

StevenMaude/pyunshort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

pyunshort_me

Python module to access the expandurl API for unshortening of URLs. unshort() takes a URL as a string and returns the unshortened form as a string.

Usage

Single URL

If you want to unshorten a single URL:

unshort.py https://some.shortened.url

Multiple URLs

If you want to unshorten several URLs, put them in a CSV in aurl column, one per row, and run as:

unshort.py input_file.csv

The CSV needs to have a header with a column called url. For example:

blah,url
something,http://some.long.url
another thing,http://another.long.url

Copyright 2013-2014 ScraperWiki and licenced under the BSD licence (see LICENCE).

About

Where does that shortened URL point to? Python module to access expandurl API for unshortening URLs

Resources

License

BSD-2-Clause, GPL-3.0 licenses found

Licenses found

BSD-2-Clause
LICENCE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages