Grab data from page and url

I would use ScrapeNinja’s “Scrape (Real Browser)” module for this, as client-side JavaScript needs to run to retrieve the data.

You CANNOT use a HTTP “Make a request” module to fetch this data.

Fields:

  1. CSS Selector field:   .visit-detail

  2. Extractor function field:

    function (input, cheerio) {
      let $ = cheerio.load(input);
      return {
        orderNum: $('h1').text().replace('Order #', ''),
        address: $('h3').first().next().text(),
        status: $('ul').children().first().children().last().text()
      }
    }
    

Output:

Screenshot_2023-09-29_190917

3 Likes