🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

webcrawlerapi-js

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webcrawlerapi-js

JS client for WecrawlerAPI

1.0.4
npm
Version published
Weekly downloads
141
147.37%
Maintainers
0
Weekly downloads
 
Created
Source

JS client for WebcrawlerAPI scrapers

Official client for WebcrawlerAPI scrapers.

Installation

Install WebcrawlerAPI js package:

npm i webcrawlerapi-js

Preparation

Request example

const webcrawlerapi = require('webcrawlerapi-js');

async function main() {
    const client = new webcrawlerapi.WebcrawlerClient(
        "YOUR API KEY HERE"
    )
    const response = await client.scrape({
        input: {
            "url": "https://www.funda.nl/detail/koop/heerhugowaard/huis-govert-flinckplantsoen-1/89968455/"
        },
        crawler_id: "webcrawler/funda",
    })
    console.log(response)
}

main().catch(console.error);

Response example

{
  city: 'Heerhugowaard',
  price: 325000,
  images: [ 'https://cloud.funda.nl/valentina_media/191/215/183_2160.jpg' ],
  status: 'inonderhandeling',
  videos: [],
  address: 'Govert Flinckplantsoen 1',
  country: 'Nederland',
  province: 'Noord-Holland',
  plot_area: '183 m²',
  post_code: '1701NH',
  description: 'De woning is met liefde en zorg 53 jaar bewoond door...',
  living_area: 127,
  house_number: 1,
  energie_label: 'd',
  property_type: 'woonhuis',
  publication_date: '2024-05-28T00:00:00',
  number_of_bedrooms: 4,
  coordinates_latitude: 52.67685,
  year_of_construction: 1971,
  coordinates_longitude: 4.8560443,
  house_number_extension: ''
}

Keywords

scraping

FAQs

Package last updated on 16 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts