Code Monkey home page Code Monkey logo

getshorty's Introduction

getShorty

getShorty is a php based url shortener built for my own personal use. It is built using 'flight' and mongoDB. The shortener supports multiple domains with customization allowed at the domain level.

Demo shortener can be found at: http://dblpl.us/

API Access

Links can also be shortened programmatically by sending post commands to the getShorty app vis POST. For Example:

import urllib, urllib2, json
data = {'longURL':'http://www.yahoo.com','api':'1'}
data = urllib.urlencode(data)
resp = urllib2.urlopen('http://dblpl.us/', data)
resp = json.loads(resp.read())
print resp

Installation

  1. Start playing: http://www.youtube.com/watch?v=BI23T9hLInQ
  2. Ensure MongoDB and PHP Mongo Extensions are installed.
  3. Git clone repo to your local directory
  4. Start shortening!

getshorty's People

Contributors

loyalj avatar

Stargazers

Bradley D. Thornton avatar

Watchers

Bradley D. Thornton avatar James Cloos avatar

getshorty's Issues

Create Bookmarklet for Shortening

Add a JS bookmarklet that will allow people to shorten whatever Page URL they are currently visiting. The shortened URL info should display in page in a new iframe/div

Prevent shortening of short/redirected URLS

If a URL is already shorter than the hashed version of the same URL then do not shorten the URL. Additionally, verify that the URL for shortening does not, itself, cause a redirect. Only final destinations should be available for shortening.

Optional landing page

Provide the option for a link to be diverted to a shortener branded landing page prior to the redirect.

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.