Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RNDpacman/shorten_url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

The script shortens links with the service bitly.com

Install

git clone https://github.com/RNDpacman/shorten_url.git
python -m venv ./shorten_url
cd ./shorten_url
source ./bin/activate
pip install --upgrade pip
pip install -r requirements.txt

Set your token:

echo 'BITLY_TOKEN=<your token>' >> ./.env

Run

Get the short link:

python ./main.py

Enter your url: http://llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.co.uk

Your shorten url: https://bit.ly/3Th2ZnH

Get the number of clicks on your link:

python ./main.py

Enter your url: https://bit.ly/3Th2ZnH

Total clicks: 2

About

Сокращатель ссылок

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages