Skip to main content

Short URLs using the warp.lol APIs.

Project description

A simple yet powerful SDK for warp.lol

Short a URL

from warplol import WarpLol

url = WarpLol.getshort(URL, full=True) 
print(url)

URL is the url that you want to short, with or without https://. The full argument is optional; with full=True, full warp.lol URL is returned (https://warp.lol/BbSg); with full=False, only the warp.lol redirect key is returned (BbSg).

Get shorted url redirect

from warplol import WarpLol

url = WarpLol.geturl(URL)
print(url)

URL is the warp.lol URL. It can both be the full url (https://warp.lol/BbSg, with or without https://) or the last part (BbSg)

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

warplol-1.1.0.tar.gz (6.3 kB view hashes)

Uploaded Source

Supported by

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