📜  如何在 python 代码示例中制作 url 缩短器

📅  最后修改于: 2022-03-11 14:46:26.732000             🧑  作者: Mango

代码示例2
#How to make a URL Shortener in Python

####You need to install " pip install pyshorteners " in the terminal / powershell

## Code:

import pyshorteners
link = input("Enter link :  ")
shortener = pyshorteners.Shortener()
x=shortener.tinyurl.short(link)
print(x)