Is your feature request related to a problem? Please describe.
Hi, I noticed that the current IP geolocation API provider does not offer https
/SSL encryption for its free tier access. Most of the services here use https
, which is why I would like to recommend ipinfo.io. IPinfo supports SSL encryption and, on tokenless access, can handle 1,000 requests per day. With a free access tier token, the limit is 50,000 requests per month.
Describe the solution you'd like
A clear and concise description of what you want to happen.
The current implementation of the code is the following:
|
url = f"http://ip-api.com/json/{url}" |
temp=url
-- url = f"http://ip-api.com/json/{url}"
++ url = f"https://ipinfo.io/{url}/json"
response = requests.get(url)
Additional context
Add any other context or screenshots about the feature request here.
Another aspect to note is the synchronous nature of the code described here:
|
try: |
|
f = open(path, "r") |
|
urls = f.read() |
|
urls = urls.split("\n") |
|
for url in urls: |
Bulk IP enrichment and async operations can be supported if used via the IPinfo module.
Disclaimer: I work for IPinfo.