Skip to content

uchakin/Link_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bitly url wrapper

Util to wrap URLs via Bit.ly service. Has additional option for get count clicks on Bit.ly links which you created.

Installing

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

Example script start

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

Project Goals

The code is written for educational purposes on online-course for web-developers dvmn.org.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages