Skip to content

A Python script that uses the TinyURL API to easily shorten URLs

Notifications You must be signed in to change notification settings

ToJen/URLShortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

A Python script that uses the TinyURL API to easily shorten URLs

Install:

  • Run git clone git@github.com/ToJen/URLShortener

Usage:

This program can be run in two ways:

  1. By argument:

    • This passes the URLs as an argument and returns a tiny url python main.py http://some.url/example

    • Multiple URLs can be passed too. python main.py http://some.url/example https://another.url/sample

  2. As input:

    • Simply run python main.py and enter any URL when prompted.
    • To quit, enter 'q' or 'quit' or 'exit' or just hit the RETURN/ENTER key.