add method to get ip information
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class IPLocationInfo:
|
||||
|
||||
def __init__(self, ip, country, city, isp):
|
||||
self.ip = ip
|
||||
self.country = country
|
||||
self.city = city
|
||||
self.isp = isp
|
||||
|
||||
def __repr__(self):
|
||||
return "ip:{}, country:{}, city:{}, isp:{}".format(self.ip, self.country, self.city, self.isp)
|
||||
Reference in New Issue
Block a user