Code Monkey home page Code Monkey logo

car-comparer's Introduction

Simple Django Car Comparison Web Application

I created this web app as I wanted an easy tool to compare different car options.

This project was inspired as I myself needed a car and found sites like Kelley Blue Book and Edmunds could have improved functionality for people wanting to compare cars. (Notibly 5 year cost of ownership was missing from many cars, also would like the option to look at 6, 7, 8, or whatever year cost of ownership easily and specifically compare expenses)

To start I am just working on the backend and trying to connect as many open source datasets into one database so a better app can be built around the datasets.

Data Sources

Project Setup

First install docker and docker compose on the system. To test correct installation run

docker --version
docker compose version

To start project run

docker compose up --build

After project finishes building run

docker compose exec web python3 manage.py makemigrations
docker compose exec web python3 manage.py migrate

Commands I am using to populate site with API data

The command scrapes all manufacturers from the year 2023 - 2024 using fueleconomy and populates the database with the results.

docker compose exec web python3 manage.py scrape_fueleconomy --scrape-type manufacturers --start-year 2023 --end-year 2024

Scrapes manufacturer info from wikipedia

docker compose exec web python3 manage.py scrape_wikipedia --scrape-type manufacturers

The command scrapes all vehicle models for various manufacturers for the years 2023 - 2024 using nhtsa and populates the database with the results.

docker compose exec web python3 manage.py scrape_nhtsa --scrape-type models --start-year 2023 --end-year 2024

Populates Vehicle Types using nhtsa data

docker compose exec web python3 manage.py scrape_nhtsa --scrape-type vehicle_types --start-year 2023 --end-year 2024

Populates vehicle variations using fueleconomy database results

docker compose exec web python3 manage.py scrape_fueleconomy --scrape-type variations --start-year 2023 --end-year 2024

Current Limitations

The biggest limitation of this project seems to be access to public data. Most data seems to cost money to access apis, and most free datasources are not complete or recent. I also still need a source of car sales data or at least current car price data to be added to the site.

TODO:

  • Look into adding more information to manufacturers using public wikipedia data
  • Determine source of where vehicle sales information can be obtained legally (ideally free)
  • Determine better data source for vehicle variations (current public data source is missing lots of 2024 car data)
  • Add automation scripts to docker image so publically available api data is periodically refreshed
  • Create API views for data so that a front end can be build around the data

car-comparer's People

Contributors

erickillian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.