1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "url": "example: https://app.apollo.io/#/people....",
10 "cookies": [{
11 "_STEP_1": "📥 Download EditThisCookie v3 Extension or any other cookie extractor extension from Chrome Web Store or your browser web store",
12 "_STEP_2": "🔓 While on the lead platform browser tab → Click extension icon → Click 'Export'",
13 "_STEP_3": "📋 DELETE THIS ENTIRE PREFILL AND PASTE YOUR EXPORTED COOKIES HERE",
14 "_STEP_4": "⚠️ Best recommended to keep your lead platform tab open during the scrape",
15 }],
16}
17
18
19run = client.actor("amr-mando/lead-scraper").call(run_input=run_input)
20
21
22print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
23for item in client.dataset(run["defaultDatasetId"]).iterate_items():
24 print(item)
25
26