1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchTerm": "laptop",
10 "startUrls": [{ "url": "https://shopgoodwill.com/categories/listing?st=laptop&sg=&c=&s=&lp=0&hp=999999&sbn=false&spo=false&snpo=false&socs=false&sd=false&sca=false&cadb=7&scs=false&sis=false&col=1&p=1&ps=40&desc=false&ss=0&UseBuyerPrefs=true" }],
11 "maxItems": 20,
12 "activeOnly": False,
13 "includeClosedAuctions": False,
14 "closedAuctionDaysBack": 7,
15 "minPrice": 0,
16 "maxPrice": 20,
17 "sortBy": "ending_soon",
18}
19
20
21run = client.actor("automation-lab/shopgoodwill-scraper").call(run_input=run_input)
22
23
24print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
25for item in client.dataset(run["defaultDatasetId"]).iterate_items():
26 print(item)
27
28