web-analyzer 0.1.3

Enterprise domain security & intelligence platform — WHOIS, DNS, SEO, tech detection, subdomain takeover, API security scanning, and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(feature = "geo-analysis")]
#[tokio::test]
async fn test_geo_analysis() {
    use web_analyzer::geo_analysis::analyze_geo;

    let result = analyze_geo("example.com").await;
    assert!(result.is_ok(), "Failed: {:?}", result.err());

    let info = result.unwrap();
    assert_eq!(info.domain, "example.com");
    assert!(!info.ai_crawler_directives.bots.is_empty());

    println!(
        "geo_analysis test passed, score: {}, grade: {}",
        info.geo_score, info.geo_grade
    );
}