Developed a data pipeline automating the daily scraping and cleaning of Craigslist used car data, producing a database of available used cars at any given time.
Going into the summer after my first year in the grad program, I was willing to take on any project that would help me develop my technical skills. After telling my professor this, he read me into a long time passion project of his - Carbitrage.
He wanted to scrape Craigslist in an automated way, getting enough data to create a model that would highlight good deals, and keeping an up to date clean database of car listings. Previously the technique had been to search for car models worth tracking and to scrape everything for each model. I ended up discovering a different approach that was eventually adopted, which was to simply iterate through all regional Craigslist servers and scrape every used car posted in the last 24 hours.
Once we had this reliable technique to scrape the raw html for every single used car listed on Craigslist, I worked on techniques to clean the data.
The primary difficulty was the varied ways in which users would refer to their vehicles, spelling mistakes - Honda Oddyssee? - as well as abbreviations - Chevy - and excessively detailed model versions - Ford F250 HD SuperDuty Extended Crew Cab etc. - were tough to deal with at a large scale. Ultimately I was able to find a method that worked well. These included two levels of 'spell checking' - a fuzzy matching attempt with a database of known makes and models followed by an automated cry for help translating to the ChatGPT API when no good match was found. The database continues to update with scraped cleaned listings each day.