python
pip install pyshorteners
python
import pyshorteners
def encrypt_url(url):
shortener = pyshorteners.Shortener()
encrypted_url = shortener.tinyurl.short(url)
return encrypted_url
url = "https://example.com/some-long-url"
encrypted_url = encrypt_url(url)