根据淘宝ip数据库查询ip归属地信息
摘要:
#!/usr/bin/env pythonimport urllib2import jsonimport osclass Ipsearch: def __init__(self,ip): print "init" self.ip = ip def check_ip(self): print "checking" tmp = self.ip.split('.') print tmp for i in tmp: if int(i) > 255: ... 阅读全文
posted @ 2013-12-05 21:37 lgy111 阅读(427) 评论(0) 推荐(0) 编辑