A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.apify.com/api/client/python below:

API client for Python | Apify Documentation

For example, the Apify API Client for Python makes it easy to run your own Actors or Actors from the Apify Store by simply using the .call() method to start an Actor and wait for it to finish.

from apify_client import ApifyClientAsync


async def main() -> None:
apify_client = ApifyClientAsync('MY-APIFY-TOKEN')


actor_client = apify_client.actor('john-doe/my-cool-actor')
call_result = await actor_client.call()

if call_result is None:
print('Actor run failed.')
return


dataset_client = apify_client.dataset(call_result['defaultDatasetId'])
list_items_result = await dataset_client.list_items()
print(f'Dataset: {list_items_result}')

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4