Example Usage
import shodan
api = shodan.Shodan("YOUR_API_KEY")
results = api.search("net:198.51.100.0/24")
for match in results["matches"]:
print(match["ip_str"], match.get("ports", []))
import shodan
api = shodan.Shodan("YOUR_API_KEY")
results = api.search("net:198.51.100.0/24")
for match in results["matches"]:
print(match["ip_str"], match.get("ports", []))