A URL Shortener Site 短网址生成网站(web.py)
Python JavaScript CSS HTML Nginx Shell
Switch branches/tags
Nothing to show
Latest commit e0ee2ad Apr 16, 2015 @mozillazg fix #1
Permalink
Failed to load latest commit information.
conf Updated conf files May 10, 2013
docs update docs May 5, 2013
shorturl fix #1 Apr 16, 2015
.gitignore update conf. May 5, 2013
LICENSE.txt Push to github.com Dec 31, 2012
README.md update README.md Jan 14, 2013
deploy.py 添加一些部署相关的文档 May 5, 2013
requirements.txt fix an error. May 5, 2013

README.md

shorturl

A URL shortener site powered by Python and web.py.

Features

  • Shorten URL.
  • QR Code.
  • Support all most URL scheme.

Demo

http://3sd.me

API

Long -> Short

URL: http://3sd.me/j/shorten
Method: POST
Parameters: url
Return: JSON

Examples:

$ curl 3sd.me/j/shorten -d "url=baidu.com"
{"shorten": "http://3sd.me/Jh8x3", "expand": "http://baidu.com"}

Short -> Long

URL: http://3sd.me/j/expand
Method: POST
Parameters: shorten
Return: JSON

Examples:

$ curl 3sd.me/j/expand -d "shorten=Jh8x3"
{"shorten": "http://3sd.me/Jh8x3", "expand": "http://baidu.com"}