Skip to content

IDilettant/bitly-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages