This package has been deprecated

    Author message:

    Package is deprecated and no longer maintained. Please consider using website-scraper-puppeteer instead.

    website-scraper-phantom

    1.0.0 • Public • Published

    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.

    Install

    npm i website-scraper-phantom

    DownloadsWeekly Downloads

    39

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    8.47 kB

    Total Files

    11

    Last publish

    Collaborators

    • s0ph1e