1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "resultType": "shows",
11 "queries": ["charizard"],
12 "urls": [
13 "https://www.whatnot.com/tag/pokemon_cards",
14 "https://www.whatnot.com/user/spacenarwhalz",
15 "https://www.whatnot.com/search?query=charizard",
16 "https://www.whatnot.com/live/29169035-c0ed-494e-a5b6-bcb133286d4c",
17 "https://www.whatnot.com/listing/TGlzdGluZ05vZGU6MjQwNzY2NTg3NA==",
18 "https://www.whatnot.com/user/spacenarwhalz/shop",
19 "https://www.whatnot.com/user/spacenarwhalz/reviews",
20 "https://www.whatnot.com/en-GB/tag/pokemon_cards",
21 "https://www.whatnot.com/category/pokemon_cards",
22 "https://whatnot.com/tag/pokemon_cards",
23 ],
24 "sellers": [],
25 "categoryView": "list",
26 "leaderboardInterval": "CURRENT_WEEK",
27 "categories": ["pokemon_cards"],
28 "proxy": { "useApifyProxy": True },
29 "incrementalMode": False,
30 "emitUnchanged": False,
31 "emitExpired": False,
32 "ignoreFieldsForChanges": [],
33}
34
35
36run = client.actor("abotapi/whatnot-scraper").call(run_input=run_input)
37
38
39print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43