Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 775 Bytes

README.md

File metadata and controls

11 lines (11 loc) · 775 Bytes

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