Skip to main content

Take a URL, compare to known shortening services, and expand it. A python3 rewrite of https://pypi.org/project/urlunshort/

Project description

I found this pacakage which did exactly what I needed but in Python2 https://pypi.org/project/urlunshort/. I updated the code and moved the web logic to requests to simplify some things.

Some URLs for shortening came from https://gist.github.com/ninetyfivenorth/9322bfc20523ba2eb7521d57cf25f265.

This should handle many services reasonably, but I found a few that don’t respond normally to a HEAD requests and the tricks=True argument might help with some of those cases.

Project details


Download files

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

Source Distribution

urlunshort3-0.3.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file urlunshort3-0.3.tar.gz.

File metadata

  • Download URL: urlunshort3-0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for urlunshort3-0.3.tar.gz
Algorithm Hash digest
SHA256 ecd792ee67ce52122a38394a1d95b5c78e79b87c714230e7529854737e5a504e
MD5 35087377e53c9167fc655ad64e7580dc
BLAKE2b-256 8ae3a9c09215faf37e21c5571a9d50957e189b05b8d2e442fbf646e8eb41d1c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page