pip install shorten
python
import shorten
short_url = shorten.generate_short_link("https://www.example.com")
print("Short URL:", short_url)
python
shorten.config.length = 6
shorten.config.charset = "abcdefghijklmnopqrstuvwxyz0123456789"
shorten.config.domain = "s.tv"
python
shorten.authenticate(api_key="YOUR_API_KEY")
python
short_url = shorten.generate_short_link("https://www.example.com", slug="my-link")
python
info = shorten.get_link_info(slug="my-link")
print("Link Info:", info)
stats = shorten.get_link_stats(slug="my-link")
print("Link Stats:", stats)
python
import shorten
shorten.config.length = 6
shorten.config.charset = "abcdefghijklmnopqrstuvwxyz0123456789"
shorten.config.domain = "s.tv"
shorten.authenticate(api_key="YOUR_API_KEY")
short_url = shorten.generate_short_link("https://www.example.com", slug="my-link")
print("Short URL:", short_url)
info = shorten.get_link_info(slug="my-link")
print("Link Info:", info)
stats = shorten.get_link_stats(slug="my-link")
print("Link Stats:", stats)