1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "origins": ["https://squoosh.app/"],
10 "requiredIconSizes": [
11 "192",
12 "512",
13 ],
14 "requireMaskableIcon": True,
15 "requiredScreenshotFormFactors": [
16 "narrow",
17 "wide",
18 ],
19 "requiredShortcutCount": 0,
20 "allowedDisplayModes": [
21 "standalone",
22 "fullscreen",
23 "minimal-ui",
24 "window-controls-overlay",
25 ],
26 "rules": [
27 "manifest_link",
28 "manifest_reachable",
29 "manifest_parsable",
30 "manifest_content_type",
31 "name",
32 "short_name",
33 "start_url",
34 "scope",
35 "display",
36 "background_color",
37 "theme_color",
38 "icon_sizes",
39 "icon_assets",
40 "maskable_icon",
41 "screenshots",
42 "shortcuts",
43 "shortcut_icon_assets",
44 "service_worker",
45 "secure_origin",
46 ],
47 "serviceWorkerPaths": [
48 "/sw.js",
49 "/service-worker.js",
50 "/serviceworker.js",
51 ],
52 "maxAssets": 200,
53 "assetHeaderBytes": 64,
54 "maxRedirects": 5,
55 "timeoutSeconds": 20,
56 "maxDocumentBytes": 2097152,
57 "concurrency": 4,
58 "userAgent": "PwaInstallGate/0.1 (+https://apify.com)",
59}
60
61
62run = client.actor("kingii98/pwa-install-readiness-and-manifest-asset-gate").call(run_input=run_input)
63
64
65print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
66for item in client.dataset(run.default_dataset_id).iterate_items():
67 print(item)
68
69