Util to wrap URLs via Bit.ly service. Has additional option for get count clicks on Bit.ly links which you created.
Get script:
git clone https://github.com/400notOK/Link_wrapper.git
Create bit.ly GENERIC ACCESS TOKEN
for work with API.
Specify your token in .env
file BITLY_ACCESS_TOKEN=<your token>
.
Example:
echo `BITLY_ACESS_TOKEN`=<your token>
Python3 should be already installed. Then use pip (or pip3, if there is a conflict with Python2) to install dependencies:
pip install -r requirements.txt
With a typical url:
C:\Link_wrapper>python main.py ya.ru
Your link: http://bit.ly/2ZXWj1B
With a bit.ly url:
C:\Link_wrapper>python main.py http://bit.ly/2ZXWj1B
Click count: 5
The code is written for educational purposes on online-course for web-developers dvmn.org.