Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozillazg/ShortURL
A URL Shortener Site 短网址生成网站(web.py)
https://github.com/mozillazg/ShortURL
Last synced: 6 days ago
JSON representation
A URL Shortener Site 短网址生成网站(web.py)
- Host: GitHub
- URL: https://github.com/mozillazg/ShortURL
- Owner: mozillazg
- License: mit
- Created: 2012-12-31T12:58:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-10-11T04:28:44.000Z (about 9 years ago)
- Last Synced: 2024-10-03T15:40:00.905Z (about 1 month ago)
- Language: Python
- Homepage: http://3sd.me/
- Size: 213 KB
- Stars: 166
- Watchers: 14
- Forks: 60
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# shorturl
A URL shortener site powered by Python and web.py.
## Features
* Shorten URL.
* QR Code.
* Support all most URL scheme.## Demo
## API
Long -> Short
URL: http://3sd.me/j/shorten
Method: POST
Parameters: url
Return: JSONExamples:
$ 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: JSONExamples:
$ curl 3sd.me/j/expand -d "shorten=Jh8x3"
{"shorten": "http://3sd.me/Jh8x3", "expand": "http://baidu.com"}