scrapfly-sdk 0.2.4

Async Rust client for the Scrapfly web scraping, screenshot, extraction and crawler APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Extraction result — port of `ExtractionResult` in `sdk/go/result_scrape.go`.

use serde::Deserialize;

/// Response envelope from `POST /extraction`.
#[derive(Debug, Clone, Deserialize, Default)]
pub struct ExtractionResult {
    /// Extracted data (shape depends on the template/prompt).
    #[serde(default)]
    pub data: serde_json::Value,
    /// Content type of the input document.
    #[serde(default)]
    pub content_type: String,
    /// Quality/confidence marker (shape depends on the model).
    #[serde(default)]
    pub data_quality: serde_json::Value,
}