1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "products": [{
10 "name": "Example AI",
11 "tagline": "AI sales research for startup teams",
12 "productHuntUrl": "https://www.producthunt.com/products/example-ai",
13 "companyWebsite": "https://example.com",
14 "upvotes": 420,
15 "makerNames": ["Jane Doe"],
16 "hunterUsername": "startuphunter",
17 "categories": [
18 "Sales",
19 "AI",
20 ],
21 }],
22 "manualProducts": [],
23 "manualPages": [],
24}
25
26
27run = client.actor("runtime/product-hunt-lead-enricher").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34