How to use contract-scraper - 1 common examples

To help you get started, we’ve selected a few contract-scraper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tamarasaurus / immo-feed / scraper / src / jobs / scrape.ts View on Github external
function scrape(job: Job, done: DoneCallback) {
  try {
    const { url, contract } = job.data
    return new Scraper(url, contract, { 'stephane-link': stephaneLink }).scrapePage()
      .then((results: any[]) => done(null, results))
      .catch((e: Error) => done(e))
  } catch (e) {
    done(e)
  }
}

contract-scraper

A customisable data scraper for the web based on JSON contracts

MIT
Latest version published 3 years ago

Package Health Score

36 / 100
Full package analysis

Popular contract-scraper functions