Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1002 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 1002 Bytes

Bitly url shortener

It's console utility which takes a link as input and converts it to a short link(bitlink) with bit.ly. If a bitlink is entered, it returns the total number of clicks on it.

How to install

Sign in to the bit.ly and generate your Generic Access Token. Then in project root create ".env" file and write:

BITLINK_TOKEN=[your API token]

It's recommended to use pyenv to isolate the project. Python3 and poetry should be already installed. Then use poetry to install dependencies:

poetry install

How to use

python3 main.py [-h] url [url ...]

asciicast

Project Goals

The code was written as part of exploring the capabilities of the standard library and API protocols.