Giter VIP home page Giter VIP logo

yad-2-puppeteer-rental-scraper's Introduction

Yad-2 Scraper with Puppeteer

**Adapted By Sara Weissman**

This project is open for collaboration.

The project aims to scrape apartment rental prices from Yad-2 (Hebrew IL) site: https://www.yad2.co.il/realestate/rent

Data will be collected from class="feeditem" and will exclude the top table of class="feed-list-platinum".

Technologies used:

  • [Node.js] - backend
  • [VUE.js] - frontend
  • [MongoDB] - database

Some excellent information on scraping with puppeteer in the following links:

Known Issues:

Adapting Puppeteer scraper for all URLs on the site:

  1. Looping through URLs + looping through pagination:
  • Issues with looping through both of the above loops simultaneously (might be solved with Puppeteer Cluster)
  • Issues with looping when pagination div doesn’t exist on page (might be solved with try-catch)
  1. Method for scraping data from ex. Tel-Aviv area needs re-writing, such as: see Puppeteer Docs

Data Accuracy Issues:

Sub-areas: refine data by price per neighborhood

Screenshots

App Screenshot

yad-2-puppeteer-rental-scraper's People

Contributors

saraw011 avatar

Watchers

 avatar

yad-2-puppeteer-rental-scraper's Issues

Looping simultaneously through URLs and pagination

URLs loop:

for (const url of GETURLS) { ... }

paginating has issue's with some URLs:

let isBtnDisabled = false;
      while (!isBtnDisabled) {
const is_disabled =
          (await page.$(".pagination-nav.text.disabled")) !== null;
        isBtnDisabled = is_disabled;
        if (!is_disabled) {
          await Promise.all([
            page.click(".next-text"),
            page.waitForNavigation({ waitUntil: "networkidle2" }),
          ]);
        }
      }

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.