shodan-rust 1.0.1

An async Shodan API client written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use shodan_rust::ShodanClient;

#[tokio::main]
async fn main() {
    let api_key = "YOUR_API_KEY".to_string(); // Add Shodan API key
    let client = ShodanClient::new(api_key);

    match client.host_info("8.8.8.8").await {
        Ok(response) => println!("Response: {}", response),
        Err(e) => eprintln!("Error: {}", e),
    }
}