1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableKeywordSearch": True,
10 "keywords": "wireless earbuds",
11 "maxSellersPerKeyword": 10,
12 "enableCategoryRankings": False,
13 "category": "",
14 "maxSellersPerCategory": 10,
15 "enableListingUrls": False,
16 "maxSellersPerListing": 10,
17 "enableSellerList": False,
18 "enableProductLinks": False,
19 "maxOffersPerProduct": 10,
20 "country": "US",
21 "maxDepth": 10,
22 "concurrency": 8,
23 "retries": 4,
24 "enableLeadDetails": True,
25 "includeEmailsFromWebsites": False,
26 "proxyConfiguration": {
27 "useApifyProxy": True,
28 "apifyProxyGroups": ["RESIDENTIAL"],
29 "apifyProxyCountry": "US",
30 },
31}
32
33
34run = client.actor("b2b_leads/amazon-sellers-real-time-data-scraper").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41