Skip to content

Commit d4d700e

Browse files
Fix CarMax scraper to filter incorrect model matches
- Added validation to ensure scraped listings match the requested model - Use search parameter URL for models ending in "EV" or containing special characters - Fixes issue where "Equinox" was returned when searching for "Equinox EV" - Cleaned historical data: removed 22 incorrect Equinox entries from 2025-10-20.json - New data: 36 correct Equinox EV listings (2024-2025 models) in 2025-10-21.json 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 8e51645 commit d4d700e

File tree

3 files changed

+716
-266
lines changed

3 files changed

+716
-266
lines changed

data/carmax/2025-10-20.json

Lines changed: 0 additions & 264 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,270 +1934,6 @@
19341934
"url": "https://www.carmax.com/car/27374213",
19351935
"listing_date": "2025-10-20"
19361936
},
1937-
{
1938-
"id": "27805298",
1939-
"make": "Chevrolet",
1940-
"model": "Equinox EV",
1941-
"year": 2015,
1942-
"trim": "LT",
1943-
"price": 9998,
1944-
"mileage": 0,
1945-
"location": "CarMax",
1946-
"url": "https://www.carmax.com/car/27805298",
1947-
"listing_date": "2025-10-20"
1948-
},
1949-
{
1950-
"id": "27704179",
1951-
"make": "Chevrolet",
1952-
"model": "Equinox EV",
1953-
"year": 2023,
1954-
"trim": "1LT",
1955-
"price": 17998,
1956-
"mileage": 0,
1957-
"location": "CarMax",
1958-
"url": "https://www.carmax.com/car/27704179",
1959-
"listing_date": "2025-10-20"
1960-
},
1961-
{
1962-
"id": "27713851",
1963-
"make": "Chevrolet",
1964-
"model": "Equinox EV",
1965-
"year": 2016,
1966-
"trim": "LT",
1967-
"price": 14998,
1968-
"mileage": 0,
1969-
"location": "CarMax",
1970-
"url": "https://www.carmax.com/car/27713851",
1971-
"listing_date": "2025-10-20"
1972-
},
1973-
{
1974-
"id": "27763523",
1975-
"make": "Chevrolet",
1976-
"model": "Equinox EV",
1977-
"year": 2023,
1978-
"trim": "1LT",
1979-
"price": 17998,
1980-
"mileage": 0,
1981-
"location": "CarMax",
1982-
"url": "https://www.carmax.com/car/27763523",
1983-
"listing_date": "2025-10-20"
1984-
},
1985-
{
1986-
"id": "27704096",
1987-
"make": "Chevrolet",
1988-
"model": "Equinox EV",
1989-
"year": 2019,
1990-
"trim": "1500 LT Trail Boss",
1991-
"price": 35998,
1992-
"mileage": 0,
1993-
"location": "CarMax",
1994-
"url": "https://www.carmax.com/car/27704096",
1995-
"listing_date": "2025-10-20"
1996-
},
1997-
{
1998-
"id": "27704452",
1999-
"make": "Chevrolet",
2000-
"model": "Equinox EV",
2001-
"year": 2016,
2002-
"trim": "LT",
2003-
"price": 11998,
2004-
"mileage": 0,
2005-
"location": "CarMax",
2006-
"url": "https://www.carmax.com/car/27704452",
2007-
"listing_date": "2025-10-20"
2008-
},
2009-
{
2010-
"id": "27704175",
2011-
"make": "Chevrolet",
2012-
"model": "Equinox EV",
2013-
"year": 2023,
2014-
"trim": "1LT",
2015-
"price": 17998,
2016-
"mileage": 0,
2017-
"location": "CarMax",
2018-
"url": "https://www.carmax.com/car/27704175",
2019-
"listing_date": "2025-10-20"
2020-
},
2021-
{
2022-
"id": "27704592",
2023-
"make": "Chevrolet",
2024-
"model": "Equinox EV",
2025-
"year": 2021,
2026-
"trim": "1500 LT",
2027-
"price": 36998,
2028-
"mileage": 0,
2029-
"location": "CarMax",
2030-
"url": "https://www.carmax.com/car/27704592",
2031-
"listing_date": "2025-10-20"
2032-
},
2033-
{
2034-
"id": "27893651",
2035-
"make": "Chevrolet",
2036-
"model": "Equinox EV",
2037-
"year": 2023,
2038-
"trim": "1LT",
2039-
"price": 18998,
2040-
"mileage": 0,
2041-
"location": "CarMax",
2042-
"url": "https://www.carmax.com/car/27893651",
2043-
"listing_date": "2025-10-20"
2044-
},
2045-
{
2046-
"id": "27804912",
2047-
"make": "Chevrolet",
2048-
"model": "Equinox EV",
2049-
"year": 2023,
2050-
"trim": "LS",
2051-
"price": 50998,
2052-
"mileage": 0,
2053-
"location": "CarMax",
2054-
"url": "https://www.carmax.com/car/27804912",
2055-
"listing_date": "2025-10-20"
2056-
},
2057-
{
2058-
"id": "27665315",
2059-
"make": "Chevrolet",
2060-
"model": "Equinox EV",
2061-
"year": 2024,
2062-
"trim": "2RS",
2063-
"price": 23998,
2064-
"mileage": 0,
2065-
"location": "CarMax",
2066-
"url": "https://www.carmax.com/car/27665315",
2067-
"listing_date": "2025-10-20"
2068-
},
2069-
{
2070-
"id": "27704919",
2071-
"make": "Chevrolet",
2072-
"model": "Equinox EV",
2073-
"year": 2016,
2074-
"trim": "LT",
2075-
"price": 13998,
2076-
"mileage": 0,
2077-
"location": "CarMax",
2078-
"url": "https://www.carmax.com/car/27704919",
2079-
"listing_date": "2025-10-20"
2080-
},
2081-
{
2082-
"id": "27704166",
2083-
"make": "Chevrolet",
2084-
"model": "Equinox EV",
2085-
"year": 2023,
2086-
"trim": "1LT",
2087-
"price": 16998,
2088-
"mileage": 0,
2089-
"location": "CarMax",
2090-
"url": "https://www.carmax.com/car/27704166",
2091-
"listing_date": "2025-10-20"
2092-
},
2093-
{
2094-
"id": "27805567",
2095-
"make": "Chevrolet",
2096-
"model": "Equinox EV",
2097-
"year": 2018,
2098-
"trim": "Premier",
2099-
"price": 19998,
2100-
"mileage": 0,
2101-
"location": "CarMax",
2102-
"url": "https://www.carmax.com/car/27805567",
2103-
"listing_date": "2025-10-20"
2104-
},
2105-
{
2106-
"id": "27704479",
2107-
"make": "Chevrolet",
2108-
"model": "Equinox EV",
2109-
"year": 2018,
2110-
"trim": "Premier",
2111-
"price": 13998,
2112-
"mileage": 0,
2113-
"location": "CarMax",
2114-
"url": "https://www.carmax.com/car/27704479",
2115-
"listing_date": "2025-10-20"
2116-
},
2117-
{
2118-
"id": "27704218",
2119-
"make": "Chevrolet",
2120-
"model": "Equinox EV",
2121-
"year": 2016,
2122-
"trim": "LS",
2123-
"price": 12998,
2124-
"mileage": 0,
2125-
"location": "CarMax",
2126-
"url": "https://www.carmax.com/car/27704218",
2127-
"listing_date": "2025-10-20"
2128-
},
2129-
{
2130-
"id": "27704275",
2131-
"make": "Chevrolet",
2132-
"model": "Equinox EV",
2133-
"year": 2022,
2134-
"trim": "LT",
2135-
"price": 18998,
2136-
"mileage": 0,
2137-
"location": "CarMax",
2138-
"url": "https://www.carmax.com/car/27704275",
2139-
"listing_date": "2025-10-20"
2140-
},
2141-
{
2142-
"id": "27739232",
2143-
"make": "Chevrolet",
2144-
"model": "Equinox EV",
2145-
"year": 2017,
2146-
"trim": "1500 LT",
2147-
"price": 26998,
2148-
"mileage": 0,
2149-
"location": "CarMax",
2150-
"url": "https://www.carmax.com/car/27739232",
2151-
"listing_date": "2025-10-20"
2152-
},
2153-
{
2154-
"id": "27704957",
2155-
"make": "Chevrolet",
2156-
"model": "Equinox EV",
2157-
"year": 2021,
2158-
"trim": "1500 RST",
2159-
"price": 38998,
2160-
"mileage": 0,
2161-
"location": "CarMax",
2162-
"url": "https://www.carmax.com/car/27704957",
2163-
"listing_date": "2025-10-20"
2164-
},
2165-
{
2166-
"id": "27971052",
2167-
"make": "Chevrolet",
2168-
"model": "Equinox EV",
2169-
"year": 2023,
2170-
"trim": "LT",
2171-
"price": 20998,
2172-
"mileage": 0,
2173-
"location": "CarMax",
2174-
"url": "https://www.carmax.com/car/27971052",
2175-
"listing_date": "2025-10-20"
2176-
},
2177-
{
2178-
"id": "27704834",
2179-
"make": "Chevrolet",
2180-
"model": "Equinox EV",
2181-
"year": 2023,
2182-
"trim": "LT",
2183-
"price": 23998,
2184-
"mileage": 0,
2185-
"location": "CarMax",
2186-
"url": "https://www.carmax.com/car/27704834",
2187-
"listing_date": "2025-10-20"
2188-
},
2189-
{
2190-
"id": "27704986",
2191-
"make": "Chevrolet",
2192-
"model": "Equinox EV",
2193-
"year": 2018,
2194-
"trim": "LT",
2195-
"price": 17998,
2196-
"mileage": 0,
2197-
"location": "CarMax",
2198-
"url": "https://www.carmax.com/car/27704986",
2199-
"listing_date": "2025-10-20"
2200-
},
22011937
{
22021938
"id": "27957276",
22031939
"make": "Honda",

0 commit comments

Comments
 (0)