1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "productUrls": [
10 "https://www.walmart.com/ip/The-Get-Women-s-Plus-Size-Ruffle-Trim-T-Shirt/1009843134",
11 "https://www.walmart.com/ip/Fantaslook-Womens-Tank-Tops-Summer-V-Neck-T-Shirts-Sleeveless-Tops-Side-Split-Tanks/2028341337",
12 ],
13 "listingUrls": [
14 "https://www.walmart.com/browse/clothing/womens-tops/5438_133162_2290732",
15 "https://www.walmart.com/search?q=sony",
16 ],
17 "keywords": ["sony headphones"],
18 "startPageNumber": 1,
19 "finalPageNumber": 1,
20 "minPrice": 0,
21 "maxPrice": 0,
22}
23
24
25run = client.actor("eneiromatos/ultimate-walmart-scraper").call(run_input=run_input)
26
27
28print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
29for item in client.dataset(run["defaultDatasetId"]).iterate_items():
30 print(item)
31
32