Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

website-scraper-phantom

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

website-scraper-phantom

Plugin for website-scraper which receives html for dynamic websites using PhantomJS

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Version Downloads Build Status

website-scraper-phantom

Plugin for website-scraper which returns html for dynamic websites using PhantomJS

Requirements

  • nodejs version >= 8
  • website-scraper version >= 4

if you need plugin for website-scraper version < 4, you can find it here (version 0.1.0)

Installation

npm install website-scraper website-scraper-phantom

Usage

const scrape = require('website-scraper');
const PhantomPlugin = require('website-scraper-phantom');

scrape({
    urls: ['https://www.instagram.com/gopro/'],
    directory: '/path/to/save',
    plugins: [ new PhantomPlugin() ]
});

How it works

It starts PhantomJS which just opens page and waits when page is loaded. It is far from ideal because probably you need to wait until some resource is loaded or click some button or log in. Currently this module doesn't support such functionality.

Keywords

website-scraper

FAQs

Package last updated on 07 Dec 2018

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