ip2proxy-python icon indicating copy to clipboard operation
ip2proxy-python copied to clipboard

getting invalid ip address for all IPs

Open vasantivmahajan opened this issue 3 years ago • 1 comments

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'}

vasantivmahajan avatar Mar 13 '22 19:03 vasantivmahajan

Hi vasantivmahajan,

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. ip2proxy_output1

ip2location avatar Mar 14 '22 00:03 ip2location