short_url = input(Enter the short URL: )
original_url = expand_short_url(short_url)
print(original_url)
API:
1、Bit.ly API:Bit.ly 提供了一个 API 来展开短网址。你可以向 `https://apissl.bit.ly/v4/shorten` 发送 GET 请求,附上短网址作为参数。
2、Unshorten.it API:Unshorten.it 提供了一个 API 来展开短网址。你可以向 `https://unshorten.it/api/expand` 发送 GET 请求,附上短网址作为参数。