pip install shorten python import shorten s = shorten.Shorten() s.api_key = 'YOUR_API_KEY' long_url = 'https://www.example.com/this-is-a-very-long-url-that-needs-to-be-shortened' short_url = s.shorten(long_url) print("Short URL:", short_url)


上一篇:
下一篇:
切换中文