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 "_REQUIRED": "🍪 You need to do these steps to use the scraper",
12 "_INSTRUCTIONS": "📥 Download EditThisCookie v3 Extension or any other cookie extractor extension from Chrome Web Store or your browser web store",
13 "_INSTRUCTIONS_2": "🔓 While on the lead platform browser tab → Click extension icon → Click 'Export'",
14 "_INSTRUCTIONS_3": "📋 DELETE THIS ENTIRE OBJECT AND PASTE YOUR EXPORTED COOKIES ARRAY HERE",
15 "_INSTRUCTIONS_4": "⚠️ Best recommended to keep your lead platform tab open during the scrape",
16 }],
17}
18
19
20run = client.actor("amr-mando/lead-scraper").call(run_input=run_input)
21
22
23print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
24for item in client.dataset(run["defaultDatasetId"]).iterate_items():
25 print(item)
26
27