1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.rockauto.com/en/catalog/ford,2015,f-150,3.5l+v6,3308774,brake+%26+wheel+hub,brake+pad,1684" }],
10 "vehicles": [{
11 "make": "Honda",
12 "year": 2019,
13 "model": "Civic",
14 "engine": "2.0L L4",
15 "category": "Brake & Wheel Hub",
16 "partType": "Brake Pad",
17 }],
18 "proxyConfiguration": {
19 "useApifyProxy": True,
20 "apifyProxyCountry": "US",
21 },
22}
23
24
25run = client.actor("mrdoe/rockauto-parts-scraper").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32