Expand description
Scrape Exchange REST API client for uploading and querying scraped data.
Implements a typed client for the Scrape Exchange platform with JWT authentication, automatic token refresh, and endpoints for:
- Publishing scraped records via
DataSinkPort - Querying published data
- Item-level lookups
- Rate-limited retry logic
§Feature
This adapter is feature-gated behind scrape-exchange.
§Example
use stygian_graph::adapters::scrape_exchange::{ScrapeExchangeClient, ScrapeExchangeConfig};
use std::time::Duration;
let config = ScrapeExchangeConfig {
api_key_id: "your_key_id".to_string(),
api_key_secret: "your_secret".to_string(),
base_url: "https://scrape.exchange/api/".to_string(),
};
let client = ScrapeExchangeClient::new(config).await?;
// client.health_check().await?;Structs§
- Feed
Config - Configuration for the Scrape Exchange WebSocket feed adapter.
- Feed
Filter - Server-side filter options for the Scrape Exchange real-time message feed.
- Scrape
Exchange Adapter - Pipeline adapter wrapping
ScrapeExchangeClientthat implementsDataSinkPortandScrapingService. - Scrape
Exchange Client - Scrape Exchange REST API client with JWT auth and automatic token refresh.
- Scrape
Exchange Config - Configuration for Scrape Exchange API client.
- Scrape
Exchange Feed - Adapter that subscribes to the Scrape Exchange real-time WebSocket feed,
implementing
StreamSourcePort.
Enums§
- Feed
Message Type - Which message content to request from the feed.
- Scrape
Exchange Error - Errors from Scrape Exchange API client.