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)
|
||||||
@@ -11,7 +11,7 @@ from src.pojo.ip.ip_location import IPLocationInfo
|
|||||||
|
|
||||||
|
|
||||||
def get_contact_list() -> list:
|
def get_contact_list() -> list:
|
||||||
_successful_items = MONGO_STORE_MANAGER.get_all_successful_items_for_yesterday()
|
_successful_items = MONGO_STORE_MANAGER.get_all_successful_items_for_day()
|
||||||
_contact_list = []
|
_contact_list = []
|
||||||
for item in _successful_items:
|
for item in _successful_items:
|
||||||
if item.url_validated:
|
if item.url_validated:
|
||||||
|
|||||||
Reference in New Issue
Block a user