1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "type": "url",
12 "data": "https://apify.com",
13 },
14 {
15 "type": "text",
16 "data": "Hello",
17 },
18 {
19 "type": "wifi",
20 "wifi": {
21 "ssid": "Home",
22 "pass": "secret",
23 "enc": "WPA",
24 },
25 },
26 {
27 "type": "vcard",
28 "vcard": {
29 "name": "Doe;Jane",
30 "phone": "+15550100",
31 "email": "jane@example.com",
32 },
33 },
34 ],
35 "csv": """type,data,ssid,password,encryption,name,phone,email,filename
36url,https://apify.com,,,,,,,apify
37wifi,,Home,secret,WPA,,,,
38vcard,,,,,Jane Doe,+15550100,jane@example.com,
39""",
40}
41
42
43run = client.actor("badboxx_newlife/bulk-qr-code-generator").call(run_input=run_input)
44
45
46print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
47for item in client.dataset(run.default_dataset_id).iterate_items():
48 print(item)
49
50