1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "expectedUrls": [
10 "https://docs.apify.com/account/settings",
11 "https://docs.apify.com/storage/dataset",
12 "https://docs.apify.com/actors/publishing/publish",
13 ],
14 "crawlRows": [
15 {
16 "url": "https://docs.apify.com/account/settings",
17 "text": "Your Apify account settings allow you to configure your profile, manage API tokens, and set your preferences.",
18 },
19 {
20 "url": "https://docs.apify.com/storage/dataset",
21 "text": "Actors can define a dataset schema that describes the structure of each dataset item and controls how data appears in the Output tab.",
22 },
23 ],
24 "minContentChars": 40,
25}
26
27
28run = client.actor("opaline_opah/crawl-coverage-audit").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35