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

IP2Proxy-lite db with IP2Proxy==2.2.0 not working. #1

Closed
daniel-leicht opened this issue Apr 30, 2020 · 2 comments
Closed

IP2Proxy-lite db with IP2Proxy==2.2.0 not working. #1

daniel-leicht opened this issue Apr 30, 2020 · 2 comments

Comments

@daniel-leicht
Copy link

daniel-leicht commented Apr 30, 2020

I tested with Google's ip (8.8.8.8) and with a known TOR exit node (109.169.33.163).
Both IPs are not showing any info in the country code and the is_proxy is always 0.

Tested on Python 3.6, installed the version from pypi.
I tried with the IP2PROXY binary databases of level 2 and level 5, same result.

Am I doing something wrong?

import IP2Proxy

db = IP2Proxy.IP2Proxy('IP2PROXY.BIN')


db.get_all("8.8.8.8") 
{'is_proxy': 0, 'proxy_type': '-', 'country_short': '-', 'country_long': '-', 'region': 'NOT SUPPORTED', 'city': 'NOT SUPPORTED', 'isp': 'NOT SUPPORTED', 'domain': 'NOT SUPPORTED', 'usage_type': 'NOT SUPPORTED', 'asn': 'NOT SUPPORTED', 'as_name': 'NOT SUPPORTED', 'last_seen': 'NOT SUPPORTED'}


db.get_all("109.169.33.163") 
{'is_proxy': 0, 'proxy_type': '-', 'country_short': '-', 'country_long': '-', 'region': 'NOT SUPPORTED', 'city': 'NOT SUPPORTED', 'isp': 'NOT SUPPORTED', 'domain': 'NOT SUPPORTED', 'usage_type': 'NOT SUPPORTED', 'asn': 'NOT SUPPORTED', 'as_name': 'NOT SUPPORTED', 'last_seen': 'NOT SUPPORTED'}
@ip2location
Copy link
Owner

Hi Daniel,

May I know how did you test the library? Are you testing directly in the interpreter in console, or are you testing using a script? If you are using a script, can you post the full source?

Also, which version of the IP2Proxy Lite Database that you had tried? We had tested with the latest version and no issue found.

@daniel-leicht
Copy link
Author

Hi,

I contacted your support through the mail, it seems that the "country" fields are only shown if this is a positive proxy.

So this issue is not really a bug, thank you.

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