1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "payload": {
9 "baseline": {
10 "integrityCheck": "ok",
11 "restoreTest": "passed",
12 "rowCounts": {
13 "books": 10,
14 "archives": 1,
15 },
16 "blobs": 0,
17 "archiveSha256": "037de4bf8749e6be125fceae49d0c50383a3a1a00bd46756a247f1ee8ddf3ba5",
18 },
19 "candidate": {
20 "integrityCheck": "ok",
21 "restoreTest": "passed",
22 "rowCounts": {
23 "books": 8,
24 "orders": 1,
25 },
26 "blobs": 0,
27 "archiveSha256": "d9574431d26872cec4d2cf6536ab69492cea31f0effab2917272029c17340590",
28 },
29 "allowDropPercent": 10,
30 } }
31
32
33run = client.actor("autosecurelogin/sqlite-backup-restore-workbench").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40