Skip to content

salambae/python-url-shortener-using-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Steps to follow !

  1. Get Access Token, you need to create an account on TinyURL and obtain an access token from the TinyURL settings.
  2. Replace YOUR_ACCESS_TOKEN in the headers dictionary, replace YOUR_ACCESS_TOKEN with your actual access token.
  3. Run the script.

Where can i get an access token ?

  1. You must login in to the TinyURL website using your email address.
  2. Log in using your email address and visit api settings.
  3. Give the token a name you like and create your token.

Example usage

Let's say you have the following long url : https://www.example.com/this-is-a-very-long-url-that-needs-to-be-shortened, when you run the script with this long url, it should return a shortened url link : https://tinyurl/random_alpha_number

Screenshot image

About

Url Shortener using Tinyurl API, and python

Resources

Stars

Watchers

Forks

Languages