Skip to content

Instantly share code, notes, and snippets.

@JayantGoel001
Created January 9, 2021 12:42
Show Gist options
  • Save JayantGoel001/55a62f28890e9b193b8850046c948b70 to your computer and use it in GitHub Desktop.
Save JayantGoel001/55a62f28890e9b193b8850046c948b70 to your computer and use it in GitHub Desktop.
Shortening the URL using pyshorteners
import pyshorteners as psh
link = "https://github.com/JayantGoel001"
short = psh.Shortener()
shorted_url = short.tinyurl.short(link)
print(shorted_url)
# https://tinyurl.com/yxktl35m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment