Skip to content
Thousands of sofas to look through. Find your dream sofa in 20. Project for Hack the North 2017.
Branch: master
Clone or download
Latest commit 4600e7e Sep 23, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scraped-sofas
static Fix scroll bars 🔨 Sep 24, 2017
templates Fix scroll bars 🔨 Sep 24, 2017
.gitignore setup local environment, update dependencies, reorg backend code Sep 16, 2017
Procfile Configure files for Heroku Sep 16, 2017
README.md Update readme ✏️ Sep 24, 2017
Sofa Dictionary.txt work on connecting front and back end Sep 17, 2017
image-scraper.py work on connecting front and back end Sep 17, 2017
index.py reinitialize vars Sep 17, 2017
requirements.txt
runtime.txt Configure files for Heroku Sep 16, 2017

README.md

Sofa Search

Thousands of sofas out there. Find your match in 20.

SofaSearch is a web application that helps users look for their dream sofa 🛋.

Try me on Heroku! - http://sofa-search.herokuapp.com

Hack The North 2017 submission by:

  • Lawrence Pang
  • Nicholas Vadivelu
  • Victor Yu

Tech Stack

  • Python + Flask backend
  • Machine learning tools Keras + Tensorflow
  • Web page designed with HTML, CSS (with CSS transitions), & jQuery

Dependencies

  • Flask==0.12.2
  • requests==2.18.4
  • numpy==1.13.1
  • pillow==2.7.0
  • keras==2.0.8
  • tensorflow==1.2.1

Design Details

  • A scraper retrieves sofa data from an Ikea website: including pictures, price, and link
  • A sofa is presented to a user
    1. User can rate a sofa with a star number scale
    2. User has the option to purchase - taking them to the site so they can purchase
    3. Save a list of sofas the user is interested in through a ‘save’ button
  • This process goes on until the user discovers their one true sofa

Local Deployment

  • Install Python 3.6.2 (https://www.python.org/downloads/)
  • Install virtualenv with pip install virtualenv
  • Navigate to your project root and create a virtualenv with virtualenv my_project
  • Activate your virtual environment with source my_project/bin/activate
  • Install dependencies in the environment with pip install -r requirements.txt
  • Start the application with heroku local web
  • View the application on localhost:5000
  • Stop running the application: Ctrl-C
  • Exit virtual environment: deactivate
You can’t perform that action at this time.