This Python script scrapes car listings from TradeMe's motor vehicle section.
- Install the required dependencies:
pip install -r requirements.txt- Run the scraper:
python car_scraper.py- Scrapes car listings from TradeMe
- Extracts title, price, and location information
- Saves data to a CSV file
- Error handling for robust operation
The script will create a CSV file named trademe_cars.csv containing the scraped data with the following columns:
- title
- price
- location
- kilometers
- link
Adjust the sleep time between requests and minimum price if needed.