1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "emails": [{
9 "name": "spring-sale-email",
10 "html": "<!DOCTYPE html><html><head><meta charset=\"utf-8\"><style>@media (max-width: 600px) { .stack { display: block !important; width: 100% !important; } } .cta { display: flex; }</style></head><body><table role=\"presentation\" width=\"600\" cellpadding=\"0\" cellspacing=\"0\"><tr><td><img src=\"https://www.w3.org/Icons/w3c_home.png\" alt=\"Company logo\" width=\"120\"></td></tr><tr><td><img src=\"https://example.com/does-not-exist.png\" width=\"600\"></td></tr><tr><td class=\"cta\"><a href=\"https://example.com/\">Shop now</a></td></tr></table></body></html>",
11 }] }
12
13
14run = client.actor("kingii98/email-html-compatibility-checker").call(run_input=run_input)
15
16
17print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
18for item in client.dataset(run.default_dataset_id).iterate_items():
19 print(item)
20
21