apify-sdk-python
apify-sdk-python copied to clipboard
The Apify SDK for Python is the official library for creating Apify Actors in Python. It provides useful features like actor lifecycle management, local storage emulation, and actor event handling.
How can i create multiple Datasets with different output schemes ?
Remove ignoring of `SLF001` violation from `pyproject.toml` and then remove underscores from all non-private members.
Respect the `APIFY_DEFAULT_XXX_ID` env var in `BaseResourceClient` https://github.com/apify/apify-sdk-python/blob/v1.3.0/src/apify/_memory_storage/resource_clients/base_resource_client.py#L116
https://github.com/apify/apify-sdk-python/tree/v1.3.0/src/apify/scrapy
https://github.com/apify/apify-sdk-python/blob/v1.3.0/src/apify/config.py#L69 We should also improve the documentation examples around Configuration here to include a mention of the config being accessible via `Actor.config`: https://docs.apify.com/sdk/python/docs/concepts/configuration
https://github.com/apify/apify-sdk-python/blob/v1.3.0/src/apify/actor.py#L226
Optimize performance by skipping unnecessary `updateRequest()` calls in `RequestQueue.reclaim_request()` https://github.com/apify/apify-sdk-python/blob/v1.3.0/src/apify/storages/request_queue.py#L314:318
Simplify code in `RequestQueue._ensure_head_is_non_empty` https://github.com/apify/apify-sdk-python/blob/v1.3.0/src/apify/storages/request_queue.py#L428
Simulate this error in Python and handle it accordingly. ```js try { return await this.client.listItems(options); } catch (e) { const error = e as Error; if (error.message.includes('Cannot create a string...