GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - joshthecoder/shorty-python: python library for accessing many url shortening services

BranchesTags
Open more actions menu

Latest commit

 

History

68 Commits
68 Commits

Folders and files

NameName
Last commit message
Last commit date
services
services
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README
README
 
 
common.py
common.py
 
 
compile.py
compile.py
 
 
example.py
example.py
 
 
header
header
 
 
imports.py
imports.py
 
 
test.py
test.py
 
 

Repository files navigation

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

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.

About

python library for accessing many url shortening services

Resources

Readme
MIT license
Activity

Stars

35 stars

Watchers

3 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.