Skip to main content

Shared runtime and schemas for Geonode Scraper framework tools

Project description

Geonode Scraper Tools Core

Shared runtime, schemas, and operation registry for Geonode Scraper tool integrations.

Most users should install one of the framework packages instead:

  • geonode-scraper-langchain
  • geonode-scraper-crewai

Install the core package directly only if you are building your own wrapper layer on top of the shared service.

Installation

pip install geonode-scraper-tools-core

Public API

  • ScraperToolSettings
  • ScraperToolService
  • OperationSpec
  • OPERATIONS
  • get_operations()

Configuration

from geonode_scraper_tools_core import ScraperToolSettings, ScraperToolService

settings = ScraperToolSettings(
    host="https://api.example.com",
    api_key="your-api-key",
)

service = ScraperToolService(settings)

Exposed Operations

The shared service normalizes SDK responses into JSON-friendly dictionaries and exposes the following 17 operations:

Extraction

  • extract — extract content from a single URL (sync or async)
  • get_job_result — fetch the current state or result of an async extraction job
  • wait_for_job — poll an async extraction job until it reaches a terminal state
  • list_jobs — list previously submitted extraction jobs with optional filters

Batch

  • create_batch — submit a list of URLs for asynchronous batch extraction
  • get_batch_status — poll the current status and partial results of a batch job
  • wait_for_batch — poll a batch job until it reaches a terminal state
  • list_batch_jobs — list previously submitted batch jobs with optional filters

Crawl

  • create_crawl — start a crawl job from a seed URL
  • get_crawl_status — poll the current status and results of a crawl job
  • wait_for_crawl — poll a crawl job until it reaches a terminal state
  • list_crawl_jobs — list previously submitted crawl jobs with optional filters

Map

  • map_urls — discover all URLs under a base URL via sitemap and HTML link extraction
  • list_map_jobs — list previously submitted map jobs with optional filters
  • get_map_job — fetch the status and discovered URLs for a single map job

Statistics & Health

  • get_statistics — retrieve aggregated extraction statistics
  • health_check — check the scraper service health and version

Selecting a Subset of Operations

Pass an operations list to get_operations() or to any framework wrapper to expose only the operations you need.

from geonode_scraper_tools_core import get_operations

ops = get_operations(["extract", "map_urls", "create_batch", "wait_for_batch"])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geonode_scraper_tools_core-0.3.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geonode_scraper_tools_core-0.3.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file geonode_scraper_tools_core-0.3.0.tar.gz.

File metadata

File hashes

Hashes for geonode_scraper_tools_core-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6c9822d0b716891c3cb8c390f264a8ace075b1473ce8a5c8c6b9c43900c6dd05
MD5 40324ae9d0838facd1dd87320b552043
BLAKE2b-256 d190328edda241b0623c2c05d816a0639f4827a8075a4aad3f3603e0fc75686e

See more details on using hashes here.

Provenance

The following attestation bundles were made for geonode_scraper_tools_core-0.3.0.tar.gz:

Publisher: python-agent-tools-core-publish.yml on geonodecom/scraper-api-sdks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geonode_scraper_tools_core-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for geonode_scraper_tools_core-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec85f663ac2bb2aada185dbe5f064fd04f604378ed9dce81e52cf69928f83f25
MD5 2c77569135f35cd4b4ea2469eec28b49
BLAKE2b-256 65ceb11b3bf04e67b777063edf6a9f549c570dcd3235a20ce90709e87f2a03da

See more details on using hashes here.

Provenance

The following attestation bundles were made for geonode_scraper_tools_core-0.3.0-py3-none-any.whl:

Publisher: python-agent-tools-core-publish.yml on geonodecom/scraper-api-sdks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page