1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "queries": ["Fender Stratocaster"],
11 "urls": [
12 "https://api.reverb.com/api/listings?query=stratocaster&condition=used&per_page=1",
13 "https://api.reverb.com/api/listings?query=stratocaster&per_page=2&page=2",
14 "https://reverb.com/brand/fender",
15 "https://reverb.com/shop/lavonta-rashawns-boutique",
16 "https://reverb.com/item/103425668",
17 "https://api.reverb.com/api/csps?query=stratocaster&per_page=1",
18 "https://api.reverb.com/api/comparison_shopping_pages/126164",
19 "https://reverb.com/marketplace?query=Gibson%20Les%20Paul&condition=used",
20 "https://reverb.com/price-guide/fender-american-professional-ii-stratocaster",
21 ],
22 "proxy": { "useApifyProxy": True },
23 "incrementalMode": False,
24 "emitUnchanged": False,
25 "emitExpired": False,
26 "changeScope": "all",
27 "compactUpdates": False,
28 "expireAfterMissedScans": 1,
29 "ignoreFieldsForChanges": [],
30}
31
32
33run = client.actor("abotapi/reverb-scraper").call(run_input=run_input)
34
35
36print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40