1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keyword": "how to make cold brew tea",
10 "urls": [
11 "https://cookieandkate.com/cold-brew-iced-tea/",
12 "https://www.whittard.com/blogs/tea/how-to-cold-brew",
13 "https://www.lipton.com/us/en/world-of-tea/recipes/long-brew-cold-brew/",
14 "https://senbirdtea.com/blogs/recipes/3-cold-brew-tea-recipes-to-make-this-summer",
15 ],
16 "peopleAlsoAsk": [
17 "Can you use regular tea bags to make cold brew tea?",
18 "How long should cold brew tea steep?",
19 ],
20}
21
22
23run = client.actor("seasons-ai/serp-to-content-brief").call(run_input=run_input)
24
25
26print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
27for item in client.dataset(run.default_dataset_id).iterate_items():
28 print(item)
29
30