mirror of
https://github.com/mouna23/OSINT-with-LLM.git
synced 2026-02-12 12:42:44 +00:00
9 lines
283 B
Python
9 lines
283 B
Python
import requests
|
|
|
|
def check_ip(ip):
|
|
url = "https://api.abuseipdb.com/api/v2/check"
|
|
headers = {"Key": "your-api-key", "Accept": "application/json"}
|
|
params = {"ipAddress": ip, "maxAgeInDays": 90}
|
|
r = requests.get(url, headers=headers, params=params)
|
|
return r.json()
|