apify-client-python
apify-client-python copied to clipboard
Apify API client for Python
Part of apify/apify-web/issues/3616 Added multiple examples, consulted with @vdusek. First three are the same as [JavaScript ones](https://github.com/apify/apify-client-js/pull/548), just reimplemented to Python. Last one is using Python-specific Pandas library for data...
## Problem description ### Aborting the last Actor run does not work - Resulting in: ``` apify_client._errors.ApifyApiError: We have bad news: there is no API endpoint at this URL. Did...
I am trying to run an actor for multiple times. the problem is that I don't want the scrapper to run more than 60 seconds. if running abort the run...
I try to call an actor which crawl data from a website. After successfully endeing it should trigger a webhook event - whill all work great BUT im unable to...
It is impossible to check if a key-value record exists, and users use kvs.getRecord instead, which is inefficient. The implementation is simple: to check if a record exists, you can...
We have introduced [apify-shared-python](https://github.com/apify/apify-shared-python) to consolidate general constants for both the Client and SDK. To facilitate a seamless transition to the new package, we have implemented re-imports with `DeprecationWarning` in...
Utilizing star imports, such as `from apify_client import *`, is generally considered as a bad practice in Python. This is because it can lead to namespace conflicts. While there may...
It seems that the following code: ```python response: httpx.Response = await self.http_client.call( url=self._url(f'records/{key}'), method='GET', params=self._params(), ) ``` returns a response of type `httpx.Response`. Later the field `_maybe_parsed_body` is accessed: ```python...
Do not use `Any` type as suggested in the [ANN401](https://docs.astral.sh/ruff/rules/any-type/). Instead of ```python from typing import Any def get_first(container: list[Any]) -> Any: return container[0] ``` use generic type ```python from...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.23.2. Release notes Sourced from @babel/traverse's releases. v7.23.2 (2023-10-11) NOTE: This release also re-publishes @babel/core, even if it does not appear in the linked release...