1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "actors": [{
9 "actorId": "example-actor-id",
10 "ownerUsername": "example_owner",
11 "slug": "example-actor",
12 "name": "Example Actor",
13 "description": "Example URLs to structured records.",
14 "inputSchema": {
15 "type": "object",
16 "properties": { "urls": {
17 "type": "array",
18 "items": { "type": "string" },
19 } },
20 },
21 "outputContract": {
22 "type": "object",
23 "properties": {
24 "url": { "type": "string" },
25 "status": { "type": "string" },
26 },
27 },
28 "datasetSchema": None,
29 "provides": ["example-extraction"],
30 "useCases": [],
31 }] }
32
33
34run = client.actor("skilled_glee/echoempire-machine-foundry").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41