1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchQueries": [
11 "pokemon cards",
12 "jordan 1",
13 ],
14 "searchUrls": [{ "url": "https://www.whatnot.com/search?query=pokemon&searchVertical=PRODUCT" }],
15 "sellerUsernames": [],
16 "categories": [
17 "Trading Card Games",
18 "Sneakers & Streetwear",
19 ],
20 "vertical": "PRODUCT",
21 "buyingFormat": "",
22 "minPrice": 0,
23 "maxPrice": 0,
24 "sortBy": "NEWEST",
25 "showStatus": "live",
26 "includeListings": True,
27 "includeLivestreams": True,
28 "includeSellers": False,
29 "includeReviews": True,
30 "maxReviews": 50,
31 "includeSubcategories": True,
32 "includeSellerEnrichment": False,
33 "maxSellerEnrichment": 20,
34 "maxItems": 100,
35 "maxResultsPerQuery": 100,
36 "maxConcurrency": 5,
37 "debugLogging": False,
38 "proxyConfiguration": {
39 "useApifyProxy": True,
40 "apifyProxyGroups": ["RESIDENTIAL"],
41 },
42}
43
44
45run = client.actor("getascraper/whatnot-scraper").call(run_input=run_input)
46
47
48print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
49for item in client.dataset(run["defaultDatasetId"]).iterate_items():
50 print(item)
51
52