1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchKeywords": [],
10 "startUrls": [{ "url": "https://www.facebook.com/marketplace/1312315172298841/search?minPrice=10000&maxMileage=60000&minYear=1980&sortBy=creation_time_descend&query=Vehicles&category_id=546583916084032&exact=false&referral_ui_component=category_menu_item" }],
11 "locationSlug": "dallas",
12 "dealerDefinitivePhrases": [],
13 "dealerStrongPhrases": [],
14 "dealerWeakPhrases": [],
15 "allowedAiVehicleTypes": [
16 "car",
17 "suv_crossover",
18 "pickup",
19 "van_minivan",
20 "commercial_truck",
21 "rv_camper",
22 "bus",
23 ],
24 "duplicateCheckApiUrl": "https://ccscraperapi.up.railway.app/api/listings/exists",
25 "proxyConfiguration": {
26 "useApifyProxy": True,
27 "apifyProxyGroups": ["RESIDENTIAL"],
28 "apifyProxyCountry": "US",
29 },
30}
31
32
33run = client.actor("fmchisti/fb-no-dealer-vehicles-scraper").call(run_input=run_input)
34
35
36print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
37for item in client.dataset(run["defaultDatasetId"]).iterate_items():
38 print(item)
39
40