1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "files": [
9 {
10 "name": "smoke.md",
11 "base64": "IyBGb3JtYXRGb3JnZQoKU21va2UgdGVzdDogdGhpcyBtYXJrZG93biBjb252ZXJ0cyB0byBIVE1MLgo=",
12 "to": "html",
13 },
14 {
15 "name": "sample.pdf",
16 "url": "https://example.com/files/sample.pdf",
17 "to": "text",
18 },
19 {
20 "name": "sheet.xlsx",
21 "keyValueStoreKey": "INPUT-sheet",
22 "to": "csv",
23 },
24 ] }
25
26
27run = client.actor("kopachelli/formatforge").call(run_input=run_input)
28
29
30print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
31for item in client.dataset(run.default_dataset_id).iterate_items():
32 print(item)
33
34