irongit
9 lines160 BPython
1import requests
2
3
4def download_ipinfo(ip):
5 try:
6 data = requests.get(f'http://ipinfo.io/{ip}/json').json()
7 except:
8 return
9 return data