GithubHelp home page GithubHelp logo

00mjk / shorty-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshthecoder/shorty-python

0.0 0.0 0.0 163 KB

python library for accessing many url shortening services

License: MIT License

Python 100.00%

shorty-python's Introduction

     _                _
 ___| |__   ___  _ __| |_ _   _ 
/ __| '_ \ / _ \| '__| __| | | |
\__ \ | | | (_) | |  | |_| |_| |
|___/_| |_|\___/|_|   \__|\__, |
                           __/ |
                          |___/ 

Access many URL shortening services from one library.

Supported URL shortening services for shrinking long urls:

    tinyurl.com                 burnurl.com
    tr.im                       hurl.ws
    urlborg.com                 xr.com
    bit.ly                      snipurl.com
    is.gd                       hex.io
    cli.gs
    twurl.nl (tweetburner)
    digg.com
    a.gd
    buk.me
    fon.gs
    fwd4.me
    chilp.it
    short.ie
    short.to
    to.ly
    budurl.com
    kl.am

Shorty can expand any url service by getting the redirect
location by requesting the tiny url.

Shorty also comes with a service called sandbox. This service stores
the urls in memory and is useful for testing your application
independently from a remote service.

See example.py for a demo of using this library.

Build:
    Each URL service is implemented in its own module inside the services
    folder. To use this library you must compile all the various modules together.
    To compile you will use the compile.py script.

        python compile.py <services>

    <services> is a space separated list of the services you want include.
    If you wish to use all supported services use the --all flag instead.
    After the script runs a file named 'shorty.py' will appear.
    This is the module you will be using inside your projects.
    A copy of the full shorty.py module will be kept in this repository.

Install:
    Simply include the shorty.py module in your python path.
    If using a version of python before 2.6 you will also need
    to have simplejson installed.

shorty-python's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.