Skip to content

A simple Python tool that can use to shorten a URL.

Notifications You must be signed in to change notification settings

mkdirlove/ShortURL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation


ShortURL
A simple Python tool that can use to shorten a URL.

Installation and Usage:

Copy-paste this into your terminal:

git clone https://github.com/mkdirlove/ShortURL.git
cd ShortURL
python3 ShortURL.py -h

Usage

    ______            __  __  _____  __ 
   / __/ /  ___  ____/ /_/ / / / _ \/ / 
  _\ \/ _ \/ _ \/ __/ __/ /_/ / , _/ /__
 /___/_//_/\___/_/  \__/\____/_/|_/____/

usage: test.py [-h] [-m {single,mass}] [-u URL] [-f FILE]

Shorten a URL

optional arguments:
  -h, --help            show this help message and exit
  -m {single,mass}, --mode {single,mass}
                        The mode of operation (single or mass)
  -u URL, --url URL     The URL to shorten (single mode only)
  -f FILE, --file FILE  A file containing the URLs to shorten (mass mode only)

Single Mode Usage

python3 test.py -m single -u https://apartrents.in/dph.html
    ______            __  __  _____  __ 
 / __/ /  ___  ____/ /_/ / / / _ \/ / 
_\ \/ _ \/ _ \/ __/ __/ /_/ / , _/ /__
/___/_//_/\___/_/  \__/\____/_/|_/____/

Shortened URL: https://goolnk.com/vk02GL

Mass Mode Usage

python3 test.py -m mass -f link.txt
   / __/ /  ___  ____/ /_/ / / / _ \/ / 
_\ \/ _ \/ _ \/ __/ __/ /_/ / , _/ /__
/___/_//_/\___/_/  \__/\____/_/|_/____/

Shortened URL: https://goolnk.com/vk02GL
Shortened URL: https://goolnk.com/8M2Z08
Shortened URL: https://goolnk.com/WPRpAm
Shortened URL: https://goolnk.com/QRVrED
Shortened URL: https://goolnk.com/D5dv0E

About

A simple Python tool that can use to shorten a URL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages