suhailidrees / autotrader_scraper

Scraper for AutoTrader.co.uk that uses BeautifulSoup4
MIT License
11 stars 15 forks source link

added aggregatedTrim functionality, can search 520d after 5 SERIES now. #5

Open Nishan-Pradhan opened 2 years ago

Nishan-Pradhan commented 2 years ago

aggregatedTrim added to **kwargs. Use by passing trim as a parameter to get_cars() function.

Example:

When searching for Mercedes-Benz C Class. Current code returns all C Class cars with no ability to narrow search down to C43 for example. With aggregatedTrim='C43 V6' we can narrow down the search.

Usage:

get_cars(
        make = "Mercedes-Benz",
        model = "C Class",
        min_year = 2005,
        max_year = 2022,
        include_writeoff = "include",
        max_attempts_per_page = 5,
        verbose = False,
        trim='C43 V6'
    )