📜  链接缩短器 - Python 代码示例

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

代码示例1
## run pip install pyshorteners in terminal first

import pyshorteners
link_input  = input('What link would you like to shorten?\n')
link = link_input
shortener = pyshorteners.Shortener()
url = shortener.tinyurl.short(link)
print(url)