This is the Python code that makes short url.
This code is the core of temurl service. This code is not the same as temurl service, but I hope this code will help you.
- Python 3.x
Long to short: [ http://000xor1.github.com ] -> [ http://tmu.kr/a ]
Long to short: [ http://twitter.com/000xor1 ] -> [ http://tmu.kr/b ]
Long to short: [ http://kakao.com ] -> [ http://tmu.kr/c ]
Long to short: [ http://naver.com ] -> [ http://tmu.kr/d ]
Long to short: [ http://neftlix.com ] -> [ http://tmu.kr/e ]
Short to Long : [ http://tmu.kr/a ] -> [ http://000xor1.github.com ]
Short to Long : [ http://tmu.kr/b ] -> [ http://twitter.com/000xor1 ]
Short to Long : [ http://tmu.kr/c ] -> [ http://kakao.com ]
Short to Long : [ http://tmu.kr/d ] -> [ http://naver.com ]
Short to Long : [ http://tmu.kr/e ] -> [ http://neftlix.com ]