You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code:
db = IP2Proxy.IP2Proxy()
db.open(os.path.join("IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL.BIN.part"))
proxy_type=db.get_proxy_type("204.199.119.10")
usage_type=db.get_usage_type("204.199.119.10")
print(proxy_type)
print(usage_type)
Response:
INVALID IP ADDRESS
INVALID IP ADDRESS
Code
record = db.get_all("172.250.213.36")
record
Response:
{'is_proxy': -1,
'proxy_type': 'INVALID IP ADDRESS',
'country_short': 'INVALID IP ADDRESS',
'country_long': 'INVALID IP ADDRESS',
'region': 'INVALID IP ADDRESS',
'city': 'INVALID IP ADDRESS',
'isp': 'INVALID IP ADDRESS',
'domain': 'INVALID IP ADDRESS',
'usage_type': 'INVALID IP ADDRESS',
'asn': 'INVALID IP ADDRESS',
'as_name': 'INVALID IP ADDRESS',
'last_seen': 'INVALID IP ADDRESS',
'threat': 'INVALID IP ADDRESS',
'provider': 'INVALID IP ADDRESS'}
The text was updated successfully, but these errors were encountered:
Have you confirm that your BIN database had been downloaded completely? Judging from the filename, your BIN database may be corrupted or not complete. Can you please download a new copy and test again? You should get the following output with the latest library and database.
Here is the code:
Code:
db = IP2Proxy.IP2Proxy()
db.open(os.path.join("IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL.BIN.part"))
proxy_type=db.get_proxy_type("204.199.119.10")
usage_type=db.get_usage_type("204.199.119.10")
print(proxy_type)
print(usage_type)
Response:
INVALID IP ADDRESS
INVALID IP ADDRESS
Code
record = db.get_all("172.250.213.36")
record
Response:
{'is_proxy': -1,
'proxy_type': 'INVALID IP ADDRESS',
'country_short': 'INVALID IP ADDRESS',
'country_long': 'INVALID IP ADDRESS',
'region': 'INVALID IP ADDRESS',
'city': 'INVALID IP ADDRESS',
'isp': 'INVALID IP ADDRESS',
'domain': 'INVALID IP ADDRESS',
'usage_type': 'INVALID IP ADDRESS',
'asn': 'INVALID IP ADDRESS',
'as_name': 'INVALID IP ADDRESS',
'last_seen': 'INVALID IP ADDRESS',
'threat': 'INVALID IP ADDRESS',
'provider': 'INVALID IP ADDRESS'}
The text was updated successfully, but these errors were encountered: