Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting invalid ip address for all IPs #7

Open
vasantivmahajan opened this issue Mar 13, 2022 · 1 comment
Open

getting invalid ip address for all IPs #7

vasantivmahajan opened this issue Mar 13, 2022 · 1 comment

Comments

@vasantivmahajan
Copy link

vasantivmahajan commented Mar 13, 2022

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

@ip2location
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants