ToJen / URLShortener

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:Python 100.0%