diff --git a/CHANGELOG.md b/CHANGELOG.md index 52cd570..37c14a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,11 @@ The format is inspired by Keep a Changelog. ## [Unreleased] +- Removed the outdated generated API and model pages from `docs/`; they predate several endpoints and were linked from nowhere. `docs/guide.md` is the reference. + ## [0.7.0] - 2026-11-26 -- If you use `geonode-scraper-tools-core`, directly or through the Geonode CLI, LangChain or CrewAI packages, upgrade it to 0.6.0 or newer before this SDK. Older versions pass the job list filters removed below, so every job list fails with this release. +- If you use `geonode-scraper-tools-core`, directly or through the Geonode CLI, LangChain or CrewAI packages, upgrade it to 0.6.0 or newer before this SDK. Older versions pass the job list filters removed below, so the extract, crawl, map and search job lists fail with this release; the batch one is not affected. - Synced with the production API spec. - New endpoints: `GET /v1/batch/{job_id}/download`, `POST /v1/google/search/light`, `POST /v1/google/shopping/product`. - Removed request parameters: `url` on `GET /v1/crawl/jobs`, `url` on `GET /v1/extract/jobs`, `url` on `GET /v1/map/jobs`, `query` on `GET /v1/search/jobs`. diff --git a/docs/ErrorResponse.md b/docs/ErrorResponse.md deleted file mode 100644 index 0b85551..0000000 --- a/docs/ErrorResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ErrorResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | Error code | -**message** | **str** | Human-readable error message | -**correlation_id** | **str** | | [optional] -**retryable** | **bool** | Whether the error is transient and may succeed on retry | - -## Example - -```python -from geonode_scraper_sdk.models.error_response import ErrorResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ErrorResponse from a JSON string -error_response_instance = ErrorResponse.from_json(json) -# print the JSON string representation of the object -print(ErrorResponse.to_json()) - -# convert the object into a dict -error_response_dict = error_response_instance.to_dict() -# create an instance of ErrorResponse from a dict -error_response_from_dict = ErrorResponse.from_dict(error_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtractAsyncResponse.md b/docs/ExtractAsyncResponse.md deleted file mode 100644 index 271de15..0000000 --- a/docs/ExtractAsyncResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ExtractAsyncResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**job_id** | **str** | Job ID for polling status | -**status** | [**JobStatus**](JobStatus.md) | Initial job status | -**status_url** | **str** | URL to poll for job status | -**estimated_tokens** | **int** | Estimated tokens reserved for this job | - -## Example - -```python -from geonode_scraper_sdk.models.extract_async_response import ExtractAsyncResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtractAsyncResponse from a JSON string -extract_async_response_instance = ExtractAsyncResponse.from_json(json) -# print the JSON string representation of the object -print(ExtractAsyncResponse.to_json()) - -# convert the object into a dict -extract_async_response_dict = extract_async_response_instance.to_dict() -# create an instance of ExtractAsyncResponse from a dict -extract_async_response_from_dict = ExtractAsyncResponse.from_dict(extract_async_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtractRequest.md b/docs/ExtractRequest.md deleted file mode 100644 index 6662bb0..0000000 --- a/docs/ExtractRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# ExtractRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **str** | URL to extract content from | -**formats** | [**List[OutputFormat]**](OutputFormat.md) | Output formats to return | [optional] [default to [html]] -**render_js** | **bool** | If true, uses a headless browser to render the page (slower, more expensive). | [optional] [default to False] -**processing_mode** | [**ProcessingMode**](ProcessingMode.md) | Processing mode: sync (block until done) or async (starts job and return job ID) | [optional] -**proxy** | [**ProxySettings**](ProxySettings.md) | Proxy configuration | [optional] -**headers** | **Dict[str, str]** | | [optional] - -## Example - -```python -from geonode_scraper_sdk.models.extract_request import ExtractRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtractRequest from a JSON string -extract_request_instance = ExtractRequest.from_json(json) -# print the JSON string representation of the object -print(ExtractRequest.to_json()) - -# convert the object into a dict -extract_request_dict = extract_request_instance.to_dict() -# create an instance of ExtractRequest from a dict -extract_request_from_dict = ExtractRequest.from_dict(extract_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtractSyncResponse.md b/docs/ExtractSyncResponse.md deleted file mode 100644 index 057a215..0000000 --- a/docs/ExtractSyncResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# ExtractSyncResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ExtractionData**](ExtractionData.md) | Extracted content in requested formats | -**metadata** | [**ExtractionMetadata**](ExtractionMetadata.md) | Execution metadata | -**tokens_charged** | **int** | Number of tokens charged for this extraction | - -## Example - -```python -from geonode_scraper_sdk.models.extract_sync_response import ExtractSyncResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtractSyncResponse from a JSON string -extract_sync_response_instance = ExtractSyncResponse.from_json(json) -# print the JSON string representation of the object -print(ExtractSyncResponse.to_json()) - -# convert the object into a dict -extract_sync_response_dict = extract_sync_response_instance.to_dict() -# create an instance of ExtractSyncResponse from a dict -extract_sync_response_from_dict = ExtractSyncResponse.from_dict(extract_sync_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtractionApi.md b/docs/ExtractionApi.md deleted file mode 100644 index 8179519..0000000 --- a/docs/ExtractionApi.md +++ /dev/null @@ -1,276 +0,0 @@ -# geonode_scraper_sdk.ExtractionApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**extract_v1_extract_post**](ExtractionApi.md#extract_v1_extract_post) | **POST** /v1/extract | Extract content from a URL -[**get_job_result_v1_extract_job_id_get**](ExtractionApi.md#get_job_result_v1_extract_job_id_get) | **GET** /v1/extract/{job_id} | Get extraction job result -[**list_jobs_v1_extract_jobs_get**](ExtractionApi.md#list_jobs_v1_extract_jobs_get) | **GET** /v1/extract/jobs | List extraction jobs - - -# **extract_v1_extract_post** -> ExtractSyncResponse extract_v1_extract_post(extract_request) - -Extract content from a URL - -Extract clean markdown or HTML from any URL with sync or async mode support - -### Example - -* Api Key Authentication (APIKeyHeader): - -```python -import geonode_scraper_sdk -from geonode_scraper_sdk.models.extract_request import ExtractRequest -from geonode_scraper_sdk.models.extract_sync_response import ExtractSyncResponse -from geonode_scraper_sdk.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = geonode_scraper_sdk.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Enter a context with an instance of the API client -with geonode_scraper_sdk.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = geonode_scraper_sdk.ExtractionApi(api_client) - extract_request = geonode_scraper_sdk.ExtractRequest() # ExtractRequest | - - try: - # Extract content from a URL - api_response = api_instance.extract_v1_extract_post(extract_request) - print("The response of ExtractionApi->extract_v1_extract_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ExtractionApi->extract_v1_extract_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **extract_request** | [**ExtractRequest**](ExtractRequest.md)| | - -### Return type - -[**ExtractSyncResponse**](ExtractSyncResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Extraction succeeded (sync mode) | - | -**202** | Job accepted (async mode) | - | -**400** | Invalid request | - | -**401** | Unauthorized | - | -**402** | Payment required | - | -**429** | Request throttled | - | -**422** | Extraction failed | - | -**500** | Internal server error | - | -**503** | Service temporarily unavailable | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_job_result_v1_extract_job_id_get** -> JobStatusResponse get_job_result_v1_extract_job_id_get(job_id) - -Get extraction job result - -Poll for job progress and retrieve extraction results (async mode only) - -### Example - -* Api Key Authentication (APIKeyHeader): - -```python -import geonode_scraper_sdk -from geonode_scraper_sdk.models.job_status_response import JobStatusResponse -from geonode_scraper_sdk.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = geonode_scraper_sdk.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Enter a context with an instance of the API client -with geonode_scraper_sdk.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = geonode_scraper_sdk.ExtractionApi(api_client) - job_id = 'job_id_example' # str | - - try: - # Get extraction job result - api_response = api_instance.get_job_result_v1_extract_job_id_get(job_id) - print("The response of ExtractionApi->get_job_result_v1_extract_job_id_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ExtractionApi->get_job_result_v1_extract_job_id_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **job_id** | **str**| | - -### Return type - -[**JobStatusResponse**](JobStatusResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Job result details | - | -**401** | Unauthorized | - | -**404** | Job not found | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_jobs_v1_extract_jobs_get** -> JobCollectionResponse list_jobs_v1_extract_jobs_get(job_id=job_id, url=url, status=status, output=output, start_date=start_date, end_date=end_date, page=page, page_size=page_size) - -List extraction jobs - -List and filter extraction jobs by job ID, URL, status, output format, and date range - -### Example - -* Api Key Authentication (APIKeyHeader): - -```python -import geonode_scraper_sdk -from geonode_scraper_sdk.models.job_collection_response import JobCollectionResponse -from geonode_scraper_sdk.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = geonode_scraper_sdk.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Enter a context with an instance of the API client -with geonode_scraper_sdk.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = geonode_scraper_sdk.ExtractionApi(api_client) - job_id = 'job_id_example' # str | Filter by job ID (optional) - url = 'url_example' # str | Filter by target URL (optional) - status = geonode_scraper_sdk.JobStatus() # JobStatus | Filter by job status (optional) - output = geonode_scraper_sdk.OutputFormat() # OutputFormat | Filter by output format (optional) - start_date = '2013-10-20T19:20:30+01:00' # datetime | Filter jobs created on or after this date (optional) - end_date = '2013-10-20T19:20:30+01:00' # datetime | Filter jobs created on or before this date (optional) - page = 1 # int | Page number (must be greater than 0) (optional) (default to 1) - page_size = 100 # int | Number of results per page (max 100) (optional) (default to 100) - - try: - # List extraction jobs - api_response = api_instance.list_jobs_v1_extract_jobs_get(job_id=job_id, url=url, status=status, output=output, start_date=start_date, end_date=end_date, page=page, page_size=page_size) - print("The response of ExtractionApi->list_jobs_v1_extract_jobs_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ExtractionApi->list_jobs_v1_extract_jobs_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **job_id** | **str**| Filter by job ID | [optional] - **url** | **str**| Filter by target URL | [optional] - **status** | [**JobStatus**](.md)| Filter by job status | [optional] - **output** | [**OutputFormat**](.md)| Filter by output format | [optional] - **start_date** | **datetime**| Filter jobs created on or after this date | [optional] - **end_date** | **datetime**| Filter jobs created on or before this date | [optional] - **page** | **int**| Page number (must be greater than 0) | [optional] [default to 1] - **page_size** | **int**| Number of results per page (max 100) | [optional] [default to 100] - -### Return type - -[**JobCollectionResponse**](JobCollectionResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Job list retrieved | - | -**401** | Unauthorized | - | -**404** | Job not found | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/ExtractionData.md b/docs/ExtractionData.md deleted file mode 100644 index 869d434..0000000 --- a/docs/ExtractionData.md +++ /dev/null @@ -1,28 +0,0 @@ -# ExtractionData - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**html** | **str** | | [optional] -**markdown** | **str** | | [optional] - -## Example - -```python -from geonode_scraper_sdk.models.extraction_data import ExtractionData - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtractionData from a JSON string -extraction_data_instance = ExtractionData.from_json(json) -# print the JSON string representation of the object -print(ExtractionData.to_json()) - -# convert the object into a dict -extraction_data_dict = extraction_data_instance.to_dict() -# create an instance of ExtractionData from a dict -extraction_data_from_dict = ExtractionData.from_dict(extraction_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtractionError.md b/docs/ExtractionError.md deleted file mode 100644 index ddad60b..0000000 --- a/docs/ExtractionError.md +++ /dev/null @@ -1,30 +0,0 @@ -# ExtractionError - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | [**ExtractionErrorCode**](ExtractionErrorCode.md) | Error classification code | -**message** | **str** | Human-readable error description | -**retryable** | **bool** | Whether the error is transient and may succeed on retry | -**details** | **Dict[str, str]** | | [optional] - -## Example - -```python -from geonode_scraper_sdk.models.extraction_error import ExtractionError - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtractionError from a JSON string -extraction_error_instance = ExtractionError.from_json(json) -# print the JSON string representation of the object -print(ExtractionError.to_json()) - -# convert the object into a dict -extraction_error_dict = extraction_error_instance.to_dict() -# create an instance of ExtractionError from a dict -extraction_error_from_dict = ExtractionError.from_dict(extraction_error_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtractionErrorCode.md b/docs/ExtractionErrorCode.md deleted file mode 100644 index a39dc92..0000000 --- a/docs/ExtractionErrorCode.md +++ /dev/null @@ -1,30 +0,0 @@ -# ExtractionErrorCode - - -## Enum - -* `RATE_LIMITED` (value: `'RATE_LIMITED'`) - -* `TEMPORARY_BLOCK` (value: `'TEMPORARY_BLOCK'`) - -* `NETWORK_ERROR` (value: `'NETWORK_ERROR'`) - -* `CAPTCHA_CHALLENGE` (value: `'CAPTCHA_CHALLENGE'`) - -* `PERMANENT_BLOCK` (value: `'PERMANENT_BLOCK'`) - -* `INVALID_URL` (value: `'INVALID_URL'`) - -* `UNPROCESSABLE_CONTENT` (value: `'UNPROCESSABLE_CONTENT'`) - -* `AUTH_REQUIRED` (value: `'AUTH_REQUIRED'`) - -* `TIMEOUT` (value: `'TIMEOUT'`) - -* `PAYMENT_REQUIRED` (value: `'PAYMENT_REQUIRED'`) - -* `INTERNAL_ERROR` (value: `'INTERNAL_ERROR'`) - -* `PROXY_ERROR` (value: `'PROXY_ERROR'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtractionErrorResponse.md b/docs/ExtractionErrorResponse.md deleted file mode 100644 index 967312f..0000000 --- a/docs/ExtractionErrorResponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# ExtractionErrorResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | [**ExtractionError**](ExtractionError.md) | Execution metadata | -**tokens_charged** | **int** | Number of tokens charged for this extraction | - -## Example - -```python -from geonode_scraper_sdk.models.extraction_error_response import ExtractionErrorResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtractionErrorResponse from a JSON string -extraction_error_response_instance = ExtractionErrorResponse.from_json(json) -# print the JSON string representation of the object -print(ExtractionErrorResponse.to_json()) - -# convert the object into a dict -extraction_error_response_dict = extraction_error_response_instance.to_dict() -# create an instance of ExtractionErrorResponse from a dict -extraction_error_response_from_dict = ExtractionErrorResponse.from_dict(extraction_error_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtractionMetadata.md b/docs/ExtractionMetadata.md deleted file mode 100644 index e674a5e..0000000 --- a/docs/ExtractionMetadata.md +++ /dev/null @@ -1,35 +0,0 @@ -# ExtractionMetadata - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **str** | URL that was extracted | -**render_js** | **bool** | Whether a headless browser was used | -**http_status** | **int** | | [optional] -**duration_ms** | **int** | | [optional] -**formats** | [**List[OutputFormat]**](OutputFormat.md) | Output formats to return | -**proxy** | [**ProxySettings**](ProxySettings.md) | | [optional] -**processing_mode** | [**ProcessingMode**](ProcessingMode.md) | Processing mode: sync (block until done) or async (starts job and return job ID) | -**headers** | **Dict[str, str]** | | [optional] -**wait_config** | [**WaitConfig**](WaitConfig.md) | | [optional] - -## Example - -```python -from geonode_scraper_sdk.models.extraction_metadata import ExtractionMetadata - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtractionMetadata from a JSON string -extraction_metadata_instance = ExtractionMetadata.from_json(json) -# print the JSON string representation of the object -print(ExtractionMetadata.to_json()) - -# convert the object into a dict -extraction_metadata_dict = extraction_metadata_instance.to_dict() -# create an instance of ExtractionMetadata from a dict -extraction_metadata_from_dict = ExtractionMetadata.from_dict(extraction_metadata_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/HTTPValidationError.md b/docs/HTTPValidationError.md deleted file mode 100644 index 1b5c711..0000000 --- a/docs/HTTPValidationError.md +++ /dev/null @@ -1,27 +0,0 @@ -# HTTPValidationError - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**detail** | [**List[ValidationError]**](ValidationError.md) | | [optional] - -## Example - -```python -from geonode_scraper_sdk.models.http_validation_error import HTTPValidationError - -# TODO update the JSON string below -json = "{}" -# create an instance of HTTPValidationError from a JSON string -http_validation_error_instance = HTTPValidationError.from_json(json) -# print the JSON string representation of the object -print(HTTPValidationError.to_json()) - -# convert the object into a dict -http_validation_error_dict = http_validation_error_instance.to_dict() -# create an instance of HTTPValidationError from a dict -http_validation_error_from_dict = HTTPValidationError.from_dict(http_validation_error_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/HealthResponse.md b/docs/HealthResponse.md deleted file mode 100644 index 48561a8..0000000 --- a/docs/HealthResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# HealthResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**version** | **str** | | -**service** | **str** | | -**timestamp** | **datetime** | | -**status** | [**HealthStatus**](HealthStatus.md) | | - -## Example - -```python -from geonode_scraper_sdk.models.health_response import HealthResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of HealthResponse from a JSON string -health_response_instance = HealthResponse.from_json(json) -# print the JSON string representation of the object -print(HealthResponse.to_json()) - -# convert the object into a dict -health_response_dict = health_response_instance.to_dict() -# create an instance of HealthResponse from a dict -health_response_from_dict = HealthResponse.from_dict(health_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/HealthStatus.md b/docs/HealthStatus.md deleted file mode 100644 index ad0bd21..0000000 --- a/docs/HealthStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# HealthStatus - - -## Enum - -* `OK` (value: `'ok'`) - -* `DEGRADED` (value: `'degraded'`) - -* `UNAVAILABLE` (value: `'unavailable'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/JobCollectionResponse.md b/docs/JobCollectionResponse.md deleted file mode 100644 index baa0cd4..0000000 --- a/docs/JobCollectionResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# JobCollectionResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**jobs** | [**List[JobListItemResponse]**](JobListItemResponse.md) | List of jobs | -**page** | **int** | Current page number | -**page_size** | **int** | Number of items per page | -**page_count** | **int** | Total number of pages | - -## Example - -```python -from geonode_scraper_sdk.models.job_collection_response import JobCollectionResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of JobCollectionResponse from a JSON string -job_collection_response_instance = JobCollectionResponse.from_json(json) -# print the JSON string representation of the object -print(JobCollectionResponse.to_json()) - -# convert the object into a dict -job_collection_response_dict = job_collection_response_instance.to_dict() -# create an instance of JobCollectionResponse from a dict -job_collection_response_from_dict = JobCollectionResponse.from_dict(job_collection_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/JobListItemResponse.md b/docs/JobListItemResponse.md deleted file mode 100644 index c21d90c..0000000 --- a/docs/JobListItemResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# JobListItemResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**job_id** | **UUID** | Job ID | -**status** | [**JobStatus**](JobStatus.md) | Current job status | -**url** | **str** | URL to extract content from | -**created_at** | **datetime** | Date when job was created | -**execution_time** | **int** | | [optional] -**output** | [**List[OutputFormat]**](OutputFormat.md) | Output formats requested | [optional] - -## Example - -```python -from geonode_scraper_sdk.models.job_list_item_response import JobListItemResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of JobListItemResponse from a JSON string -job_list_item_response_instance = JobListItemResponse.from_json(json) -# print the JSON string representation of the object -print(JobListItemResponse.to_json()) - -# convert the object into a dict -job_list_item_response_dict = job_list_item_response_instance.to_dict() -# create an instance of JobListItemResponse from a dict -job_list_item_response_from_dict = JobListItemResponse.from_dict(job_list_item_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/JobStatus.md b/docs/JobStatus.md deleted file mode 100644 index 6c0b42b..0000000 --- a/docs/JobStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# JobStatus - - -## Enum - -* `QUEUED` (value: `'queued'`) - -* `PROCESSING` (value: `'processing'`) - -* `COMPLETED` (value: `'completed'`) - -* `FAILED` (value: `'failed'`) - -* `CANCELLED` (value: `'cancelled'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/JobStatusResponse.md b/docs/JobStatusResponse.md deleted file mode 100644 index 1f81bdf..0000000 --- a/docs/JobStatusResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# JobStatusResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**job_id** | **str** | Job ID | -**status** | [**JobStatus**](JobStatus.md) | Current job status | -**created_at** | **datetime** | When job was created | -**completed_at** | **datetime** | | [optional] -**data** | [**ExtractionData**](ExtractionData.md) | | [optional] -**metadata** | [**ExtractionMetadata**](ExtractionMetadata.md) | | [optional] -**error** | [**ExtractionError**](ExtractionError.md) | | [optional] -**tokens_charged** | **int** | | [optional] - -## Example - -```python -from geonode_scraper_sdk.models.job_status_response import JobStatusResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of JobStatusResponse from a JSON string -job_status_response_instance = JobStatusResponse.from_json(json) -# print the JSON string representation of the object -print(JobStatusResponse.to_json()) - -# convert the object into a dict -job_status_response_dict = job_status_response_instance.to_dict() -# create an instance of JobStatusResponse from a dict -job_status_response_from_dict = JobStatusResponse.from_dict(job_status_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LocationInner.md b/docs/LocationInner.md deleted file mode 100644 index 6259aad..0000000 --- a/docs/LocationInner.md +++ /dev/null @@ -1,26 +0,0 @@ -# LocationInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from geonode_scraper_sdk.models.location_inner import LocationInner - -# TODO update the JSON string below -json = "{}" -# create an instance of LocationInner from a JSON string -location_inner_instance = LocationInner.from_json(json) -# print the JSON string representation of the object -print(LocationInner.to_json()) - -# convert the object into a dict -location_inner_dict = location_inner_instance.to_dict() -# create an instance of LocationInner from a dict -location_inner_from_dict = LocationInner.from_dict(location_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OutputFormat.md b/docs/OutputFormat.md deleted file mode 100644 index 092cc65..0000000 --- a/docs/OutputFormat.md +++ /dev/null @@ -1,10 +0,0 @@ -# OutputFormat - - -## Enum - -* `MARKDOWN` (value: `'markdown'`) - -* `HTML` (value: `'html'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProcessingMode.md b/docs/ProcessingMode.md deleted file mode 100644 index 6f2b3f1..0000000 --- a/docs/ProcessingMode.md +++ /dev/null @@ -1,10 +0,0 @@ -# ProcessingMode - - -## Enum - -* `SYNC` (value: `'sync'`) - -* `ASYNC` (value: `'async'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProxySettings.md b/docs/ProxySettings.md deleted file mode 100644 index 3de9eaf..0000000 --- a/docs/ProxySettings.md +++ /dev/null @@ -1,28 +0,0 @@ -# ProxySettings - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | **str** | | [optional] -**type** | [**ProxyType**](ProxyType.md) | Type of proxy to use (datacenter or residential) | [optional] - -## Example - -```python -from geonode_scraper_sdk.models.proxy_settings import ProxySettings - -# TODO update the JSON string below -json = "{}" -# create an instance of ProxySettings from a JSON string -proxy_settings_instance = ProxySettings.from_json(json) -# print the JSON string representation of the object -print(ProxySettings.to_json()) - -# convert the object into a dict -proxy_settings_dict = proxy_settings_instance.to_dict() -# create an instance of ProxySettings from a dict -proxy_settings_from_dict = ProxySettings.from_dict(proxy_settings_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProxyType.md b/docs/ProxyType.md deleted file mode 100644 index 5dfc816..0000000 --- a/docs/ProxyType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ProxyType - - -## Enum - -* `DATACENTER` (value: `'datacenter'`) - -* `RESIDENTIAL` (value: `'residential'`) - -* `MIX` (value: `'mix'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RequestCountResponse.md b/docs/RequestCountResponse.md deleted file mode 100644 index e445034..0000000 --- a/docs/RequestCountResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# RequestCountResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_date** | **datetime** | Date of the request count | -**success_request_count** | **int** | Number of successful requests on this date | -**failed_request_count** | **int** | Number of failed requests on this date | - -## Example - -```python -from geonode_scraper_sdk.models.request_count_response import RequestCountResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of RequestCountResponse from a JSON string -request_count_response_instance = RequestCountResponse.from_json(json) -# print the JSON string representation of the object -print(RequestCountResponse.to_json()) - -# convert the object into a dict -request_count_response_dict = request_count_response_instance.to_dict() -# create an instance of RequestCountResponse from a dict -request_count_response_from_dict = RequestCountResponse.from_dict(request_count_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md deleted file mode 100644 index 3bd107f..0000000 --- a/docs/StatisticsApi.md +++ /dev/null @@ -1,91 +0,0 @@ -# geonode_scraper_sdk.StatisticsApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_statistics_v1_statistics_get**](StatisticsApi.md#get_statistics_v1_statistics_get) | **GET** /v1/statistics | Get extraction statistics - - -# **get_statistics_v1_statistics_get** -> StatisticsResponse get_statistics_v1_statistics_get(start_date=start_date, end_date=end_date) - -Get extraction statistics - -Retrieve aggregated extraction statistics for a given date range - -### Example - -* Api Key Authentication (APIKeyHeader): - -```python -import geonode_scraper_sdk -from geonode_scraper_sdk.models.statistics_response import StatisticsResponse -from geonode_scraper_sdk.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = geonode_scraper_sdk.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Enter a context with an instance of the API client -with geonode_scraper_sdk.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = geonode_scraper_sdk.StatisticsApi(api_client) - start_date = '2013-10-20T19:20:30+01:00' # datetime | Filter by start date (defaults to 30 days ago) (optional) - end_date = '2013-10-20T19:20:30+01:00' # datetime | Filter by end date (defaults to now) (optional) - - try: - # Get extraction statistics - api_response = api_instance.get_statistics_v1_statistics_get(start_date=start_date, end_date=end_date) - print("The response of StatisticsApi->get_statistics_v1_statistics_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StatisticsApi->get_statistics_v1_statistics_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start_date** | **datetime**| Filter by start date (defaults to 30 days ago) | [optional] - **end_date** | **datetime**| Filter by end date (defaults to now) | [optional] - -### Return type - -[**StatisticsResponse**](StatisticsResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Statistics retrieved successfully | - | -**401** | Unauthorized | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/StatisticsResponse.md b/docs/StatisticsResponse.md deleted file mode 100644 index 36df7bf..0000000 --- a/docs/StatisticsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# StatisticsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extraction_count** | **int** | Total number of extractions in the period | -**previous_period_extraction_count** | **int** | Total extractions in the previous period | -**success_rate** | **float** | Extraction success rate (0.0 to 1.0) | -**average_extraction_duration** | **int** | Average extraction duration in milliseconds | -**period_tokens_used** | **int** | Total tokens used in the period | -**requests** | [**List[RequestCountResponse]**](RequestCountResponse.md) | Daily request counts | [optional] -**tokens_used** | [**List[TokensUsageResponse]**](TokensUsageResponse.md) | Daily tokens usage | [optional] - -## Example - -```python -from geonode_scraper_sdk.models.statistics_response import StatisticsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of StatisticsResponse from a JSON string -statistics_response_instance = StatisticsResponse.from_json(json) -# print the JSON string representation of the object -print(StatisticsResponse.to_json()) - -# convert the object into a dict -statistics_response_dict = statistics_response_instance.to_dict() -# create an instance of StatisticsResponse from a dict -statistics_response_from_dict = StatisticsResponse.from_dict(statistics_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SystemApi.md b/docs/SystemApi.md deleted file mode 100644 index b4c96df..0000000 --- a/docs/SystemApi.md +++ /dev/null @@ -1,71 +0,0 @@ -# geonode_scraper_sdk.SystemApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**health_check_health_get**](SystemApi.md#health_check_health_get) | **GET** /health | Health check - - -# **health_check_health_get** -> HealthResponse health_check_health_get() - -Health check - -### Example - - -```python -import geonode_scraper_sdk -from geonode_scraper_sdk.models.health_response import HealthResponse -from geonode_scraper_sdk.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = geonode_scraper_sdk.Configuration( - host = "http://localhost" -) - - -# Enter a context with an instance of the API client -with geonode_scraper_sdk.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = geonode_scraper_sdk.SystemApi(api_client) - - try: - # Health check - api_response = api_instance.health_check_health_get() - print("The response of SystemApi->health_check_health_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SystemApi->health_check_health_get: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**HealthResponse**](HealthResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Service is healthy | - | -**503** | Service unavailable | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TokensUsageResponse.md b/docs/TokensUsageResponse.md deleted file mode 100644 index d42b6ae..0000000 --- a/docs/TokensUsageResponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# TokensUsageResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_date** | **datetime** | Date of the tokens usage | -**tokens_used** | **int** | Number of tokens used on this date | - -## Example - -```python -from geonode_scraper_sdk.models.tokens_usage_response import TokensUsageResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of TokensUsageResponse from a JSON string -tokens_usage_response_instance = TokensUsageResponse.from_json(json) -# print the JSON string representation of the object -print(TokensUsageResponse.to_json()) - -# convert the object into a dict -tokens_usage_response_dict = tokens_usage_response_instance.to_dict() -# create an instance of TokensUsageResponse from a dict -tokens_usage_response_from_dict = TokensUsageResponse.from_dict(tokens_usage_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ValidationError.md b/docs/ValidationError.md deleted file mode 100644 index 2b1e2b2..0000000 --- a/docs/ValidationError.md +++ /dev/null @@ -1,29 +0,0 @@ -# ValidationError - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loc** | [**List[LocationInner]**](LocationInner.md) | | -**msg** | **str** | | -**type** | **str** | | - -## Example - -```python -from geonode_scraper_sdk.models.validation_error import ValidationError - -# TODO update the JSON string below -json = "{}" -# create an instance of ValidationError from a JSON string -validation_error_instance = ValidationError.from_json(json) -# print the JSON string representation of the object -print(ValidationError.to_json()) - -# convert the object into a dict -validation_error_dict = validation_error_instance.to_dict() -# create an instance of ValidationError from a dict -validation_error_from_dict = ValidationError.from_dict(validation_error_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)