A Python application for analyzing the second hand electric car belgian market by scraping and visualizing data from various car listing websites.
- Scrapes electric car listings from multiple sources (Autoscout24, 2ememain, Gocar)
- Cleans and normalizes data
- Provides interactive visualizations
- Real-time data updates
- Clone the repository
- Install requirements:
pip install -r requirements.txt
- Create a .env file with your API tokens (use .env.example as a template):
GOCAR_BEARER_TOKEN=your_token_here
- Run the application:
python main.py
The application uses a central config.py file for managing paths and settings. The following directories will be created automatically:
- results/ (for storing scraped data)
- visualizations/ (for storing generated plots)
- logs/ (for application logs)
electric-car-market-analyzer/
│
├── src/
│ ├── sites/
│ │ ├── autoscout24/
│ │ ├── deuxieme_main/
│ │ └── gocar/
│ ├── data/
│ └── visualization/
│
├── results/
├── logs/
├── config.py
├── logging_config.py
├── main.py
└── requirements.txt
The application uses Python's logging module for all output. Logs are stored in the logs/ directory and are also output to the console.
MIT License
Pull requests are welcome. Please make sure to update tests as appropriate.