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 "cookies": "",
37 "maxConcurrency": 5,
38 "debugLogging": False,
39 "proxyConfiguration": {
40 "useApifyProxy": True,
41 "apifyProxyGroups": ["RESIDENTIAL"],
42 },
43}
44
45
46run = client.actor("getascraper/whatnot-scraper").call(run_input=run_input)
47
48
49print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
50for item in client.dataset(run["defaultDatasetId"]).iterate_items():
51 print(item)
52
53