Git Product home page Git Product logo

blocket's Introduction

Blocket scraper Build Status

This application downloads all rent ads for Stockholm from Blocket.se, and shows them on a map. It is written as a node.js REST application and uses a Neo4j database for storing all the information.

To run it, simply clone the repository and type:

npm install
npm start -- --initialize

In this way the application is listening on http://127.0.0.1:3000 and views something like this:

The base route /blocket/map expects some parameters for filtering the results.

  • the metro line that can be one in red, green, blue, or the name of a line like T10, T11, T13, T14, T17, T18, T19. The value any can be used to get any line or color.
  • the distance in km from the closest metro station. It can also be a decimal like 0.4. If the distance is 0, no filtering is done, i.e. all ads with some coordinates are returned.
  • the maximum price, in SEK/month. If 0 is passed, no filtering is done on the price.
  • the maximum age of the ads, in days. If 0 is passed no filtering is done on the age.

I usually use something like http://127.0.0.1:3000/blocket/map/any/1/10000/0

The application also needs a Neo4j database up and running, that can be configuered through config.js.

blocket's People

Stargazers

 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.