- python
- request
You can install these packages using the following command:
pip install -r requirements.txt
-
Replace
7aee10d43...53ef5d05714
i.e bitlyToken variable in URL_Shorten.py with your actual Bitly API key. -
Replace your URL with
url
variable that you want to shorten. -
Run the script using the following command:
python URL_Shorten.py
The script will return the shortened URL.
Built With