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