pip install bitly-api-python
You can read our Documention on https://api.ksprojects.me/docs
from BitlyAPI import shorten_urls
urls = ["https://github.com/Krishna-Singhal", "...", "..."]
response = shorten_url(urls)
# print all shotened urls
for i in response:
print(i.long_url, i.short_url, i.status_txt)
Parameter | description |
---|---|
urls |
List of Long urls |
from BitlyAPI import __version__
print(__version__)
Copyright (C) 2022 by Krishna-Singhal, < https://github.com/Krishna-Singhal >.
All rights reserved.