A Python script that uses the TinyURL API to easily shorten URLs
- Run
git clone git@github.com/ToJen/URLShortener
This program can be run in two ways:
-
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
-
-
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.
- Simply run