An automated data collection and analysis project focusing on used car listings from Facebook Marketplace.
Overview
This project focuses on web scraping and data analysis of car listings from Facebook Marketplace, with the aim of uncovering trends such as:
- ๐ Average price over the years
 - ๐ฃ๏ธ Average kilometrage
 - ๐ Listing frequency by year
 
It uses Python tools to scrape, clean, and visualize the data for a specific make and model.
Technologies Used
- BeautifulSoup (BS4) โ HTML parsing for web scraping
 - Splinter โ Browser automation to navigate and collect listings
 - Pandas โ Data manipulation and aggregation
 - Matplotlib โ Bar charts and visualizations
 
Parameters for Customization
You can easily adjust the script to target other listings by changing:
make: e.g.,"Honda"model: e.g.,"Civic"min_yeartomax_year: e.g.,2000 - 2020min_price,max_price,min_mileage,max_mileagedays_listed: Filter recent listings onlytransmission: e.g.,"automatic"
๐ Note: Toronto is used as the location due to limited pricing data for the Algerian market.
Key Insights
The analysis generates the following:
- Average Price by Year
 - Average Kilometrage by Year
 - Number of Listings by Year
 
These insights help users understand how prices and usage vary over time for a specific car model.
Visual Results
The final output includes bar charts for:
- โ Average Price by Year
 - โ Average Kilometrage by Year
 - โ Listings Volume by Year
 
These make it easy to compare trends and assess market value or car wear by year.