shortn: URL shortener for many services

terminalURL shorteners come in handy when you want to share a long link to someone. We implemented a tiny cmdline URL shortener using tny.im in anĀ earlier article. In this article we will explore shortn, another Python cmdline URL shortener supporting 6 more services:

  • bit.ly (default)
  • j.mp
  • t.cn
  • is.gd
  • v.gd
  • tiny.cc

Installation

To install on Ubutu, run:

$ git clone https://github.com/ishu3101/shortn
$ cd shortn
$ python setup.py install

Usage

Usage: shortn [-h] [-j] [-t] [-i] [-v] [-c] [-V] url

  Shorten URL using the following services: bit.ly, j.mp, t.cn, is.gd, v.gd,
  tiny.cc.

  positional arguments:
    url            Enter the URL to shorten here

  optional arguments:
    -h, --help     show this help message and exit
    -j, --jmp      use j.mp to shorten url
    -t, --tcn      use t.cn to shorten url
    -i, --isgd     use is.gd to shorten url
    -v, --vgd      use v.gd to shorten url
    -c, --tinycc   use tiny.cc to shorten url
    -V, --version  show program's version number and exit

Webpage: shortn

2 thoughts on “shortn: URL shortener for many services”

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s