1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchKeywords": [
10 "source-backed signal",
11 "buyer fit",
12 ],
13 "taskIntent": "buyer-ready-product-run",
14 "sourceMode": "startUrls",
15 "outputMode": "buyer-ready-records",
16 "startUrls": [{ "url": "https://api.npmjs.org/downloads/point/last-week/crawlee" }],
17 "overallTimeoutSecs": 900,
18 "requestTimeoutSecs": 30,
19 "maxRequestRetries": 2,
20 "sinceLastRun": False,
21 "deltaMode": True,
22}
23
24
25run = client.actor("zentrafoundry/actor-flight-recorder-v2").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32