/bitly-api-python

A Python wrapper for the bit.ly API

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

BitlyAPI


Installation

pip install bitly-api-python

Documentation

You can read our Documention on https://api.ksprojects.me/docs


Examples

Short Url

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)

Parameters

Parameter description
urls List of Long urls

Version

from BitlyAPI import __version__

print(__version__)

Copyright

Copyright (C) 2022 by Krishna-Singhal, < https://github.com/Krishna-Singhal >.

All rights reserved.