util.py 309 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
#!/usr/bin/env python
# -*- coding: utf-8 -*-


class Util() :
def getText2bitly(self,text):
return "http://bit.ly/" + text.split("http://bit.ly/")[1].split(" ")[0]

#util = Util()
#print util.getText2Url("실시간 후끈후끈한 사용 후기.jpg지금 달려!!!!!!! ▶http://bit.ly/29MEr2Z")