GithubHelp home page GithubHelp logo

herredro / immobilienscout24-scraper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fedebertolini/immobilienscout24-scraper

1.0 1.0 0.0 84 KB

Web scrapper for the immobilienscout24 apartment listing

License: MIT License

JavaScript 2.95% HTML 97.05%

immobilienscout24-scraper's Introduction

immobilienscout24-scraper

Web scraper for the Immobilien Scout 24 apartment listing.

Installation

npm install immobilienscout24-scraper --save

Usage

const scraper = require('immobilienscout24-scraper');

Cities

You can get the available cities:

scraper.cities

Output:

[
    'Berlin',
    'Bonn',
    'Bremen',
    'Chemnitz',
    'Dortmund',
    'Dresden',
    'Duisburg',
    'Düsseldorf',
    'Essen',
    'Frankfurt',
    'Gelsenkirchen',
    'Hamburg',
    'Hannover',
    'Köln',
    'Leipzig',
    'München',
    'Mönchengladbach',
    'Nürnberg',
    'Stuttgart',
    'Wuppertal'
]

Scrap city

You can get all listed apartments for a specific city and a specific page (defaults to 1):

scraper.scrapCity('Berlin', 1)

This will return a Promise that resolves in an object with two properties: an array of apartments and an object with the pagination info.

Output:

{
  items:[{
    id:'93219445',
    rentBase:1712,
    rentTotal:2134,
    area:132,
    rooms:4,
    availableFrom:null,
    isAvailable:true,
    address:'Saargemünder Straße 25',
    postalCode:'14195',
    city:'Berlin',
    url:'https://www.immobilienscout24.de/expose/93219445'
  }, {
    id:'92650974',
    rentBase:2499,
    rentTotal:2769,
    area:161,
    rooms:4,
    availableFrom:2017-01-01T00:00:00.000Z,
    isAvailable:true,
    address:'Kurfürstendamm 131',
    postalCode:'10711',
    city:'Berlin',
    url:'https://www.immobilienscout24.de/expose/92650974'
  }, {
    id:'91212520',
    rentBase:1449,
    rentTotal:1776.25,
    area:130.9,
    rooms:5,
    availableFrom:2017-01-15T00:00:00.000Z,
    isAvailable:true,
    address:'Hauffstraße 1A',
    postalCode:'10317',
    city:'Berlin',
    url:'https://www.immobilienscout24.de/expose/91212520'
  }],
  pagination:{
    page:1,
    totalPages:352
  }
}

immobilienscout24-scraper's People

Contributors

fedebertolini avatar

Stargazers

Herredro avatar

Watchers

Herredro 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.