Code Monkey home page Code Monkey logo

sakti2k6 / cars2go Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 305 KB

Python/Flask based web application showing used car information. Employs a web scraper to extract used car information from truecar and autotrader websites.

Home Page: https://cars2go.herokuapp.com

Shell 1.26% Python 75.67% Mako 1.50% CSS 5.11% HTML 16.46%
web-crawler heroku-platform web-scraping used-cars flask flask-sqlalchemy migrate-database postgresql-database web-application python3

cars2go's Introduction

Cars2Go (Used Car Portal)

cars2go is a web application deployed on heroku platform (https://cars2go.herokuapp.com) It provides an user interface to search for used cars. The website has various search parameters like car make, model, year, price range etc. The database currently has used cars infromation from truecar.com and autotrader.com. This can be extended to more websites.

The web crawler and scrapper are run locally and database is updated at the heroku platform. Information about used cars are updated once a week.

Steps to setup the Web Crawler and running Web App on localhost

Python Version: *3.9.0*
  1. First create a virtual enviorment

    python -m venv env
    pip install -r requirements.txt
    
  2. Configure the app settings and DATABASE_URL info in .env file.

    source .env 
    
  3. Running web crawler

    python setup_crawler_truecar.py setup_crawler_autotrader.py
    python reset_db.py
    python crawler_truecar.py crawler_autotrader.py
    
  4. Migrating local database

    python manage.py db init
    python manage.py db migrate
    python manage.py db upgrade
    
  5. Running web app on localhost (127.0.0.1:5000)

    python app.py
    

cars2go's People

Contributors

sakti2k6 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

kavya1440

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.