Wrappper for https://encurta.net/api
Project description
Install
pip install encurtanet
Simple use example
from encurtanet import EncurtaNet, NO_ADS, INTERSTITIALS_ADS
shortener = EncurtaNet("YOUR API TOKEN HERE")
url_info = shortener.shorten(
"https://marcuth.github.io/", # Your url
"url-alias", # Alias of the url
True, # If response is text format
NO_ADS # Ads type
)
shortened_url = url_info.get_shortened_url()
print(shortened_url)
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
encurtanet-0.0.0.0.3.tar.gz
(3.0 kB
view hashes)