GithubHelp home page GithubHelp logo

miningape / housing-data Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 13.65 MB

This project is my attempt to collect and analyse the housing market data in Copenhagen to find a good deal

Python 18.40% TypeScript 81.60%

housing-data's Introduction

Housing Price Analysis

  • ๐Ÿ•ต๏ธโ€โ™‚๏ธ Scrapes housing data from online sources (fx. boligportal)
  • ๐Ÿ‘จโ€๐Ÿ”ง Data pipelines built using Puppeteer and TypeScript
  • ๐Ÿง Analysis done in Dash, Plotly and Python to find houses that are especially cheap for a given size / location

Usage

To start the pipeline and collect data run:

yarn start

This will append the collected housing data to the out.nljson.dump file.

To visualise this data run:

yarn graph

and navigate to http://127.0.0.1:8050/ to view and interact with the data.

How it works?

  1. We collect data using Puppeteer.js to navigate to different webpages and scrape data from them, and then continue to the next page.
  2. This data is turned into a stream which is then processed to clean up each record - making it both more easily readable and more easily consumable.
  3. The stream of JSON records is then piped to out.nljson.dump and each record is separated by newlines (both source and destination behaviours can be modified inside src/index.ts)
  4. We then use pandas dataframes to further clean the data (mostly eliminating data not needed for the visualisation, and removing duplicate records). Then we use Plotly to display this data in a quick/simple way - followed by using Dash to add interactivity (i.e. creating links to the original posting)

housing-data's People

Contributors

miningape avatar

Stargazers

Lukas Rasocha 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.