pyshorteners 生成短链接

官方文档

https://pyshorteners.readthedocs.io/en/latest/


安装

pip install pyshorteners

我的版本

Successfully installed certifi-2021.5.30 
charset-normalizer-2.0.6 
idna-3.2 
pyshorteners-1.0.1 
requests-2.26.0

import pyshorteners as psn

url = "https://www.cnblogs.com/hany-postq473111315/"
u = psn.Shortener().clckru.short(url)
u
打开还是可以访问的

https://clck.ru/Xekdy

 

上一篇:openlayers中单击获取要素


下一篇:Python equivalent of D3.js