https://github.com/ishu3101/shortn
A command line application written in python that lets you shorten url using bit.ly, j.mp, tiny.cc and more
https://github.com/ishu3101/shortn
command-line-app python url-shortener
Last synced: about 1 year ago
JSON representation
A command line application written in python that lets you shorten url using bit.ly, j.mp, tiny.cc and more
- Host: GitHub
- URL: https://github.com/ishu3101/shortn
- Owner: ishu3101
- License: mit
- Created: 2015-09-28T02:46:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-15T20:50:04.000Z (over 9 years ago)
- Last Synced: 2025-03-24T08:21:46.955Z (about 1 year ago)
- Topics: command-line-app, python, url-shortener
- Language: Python
- Size: 7.81 KB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shortn
A command line application written in python that lets you shorten url using bit.ly, j.mp, tiny.cc and more
[![Pip version][shield-pip]][info-pip]
[![MIT licensed][shield-license]][info-license]
## Table of Contents
* [Install](#install)
* [Usage](#usage)
* [Supported Services](#supported-services)
* [License](#license)
## Install
### Method 1 - Using pip
```bash
pip install shortn
```
### Method 2 - Build from source
```bash
$ git clone git@github.com:ishu3101/shortn.git
$ cd shortn
$ python setup.py install
```
## Usage
##### Shorten URL using bit.ly
```bash
$ shortn
```
##### Shorten URL using j.mp
```bash
$ shortn -j
```
##### See help for more information.
```bash
$ shortn --help
```
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
## Supported Services
* bit.ly
* j.mp
* t.cn
* is.gd
* v.gd
* tiny.cc
## License
shortn is released under the MIT license. See [LICENSE](LICENSE) for details.
[info-license]: LICENSE
[info-pip]: https://pypi.python.org/pypi/shortn
[shield-license]: https://img.shields.io/pypi/l/shortn.svg
[shield-pip]: https://img.shields.io/pypi/v/shortn.svg