Skip to content

S-codes14/phantom-scrape-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

website-scraper-phantom

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

This module is an Open Source Software maintained by one developer in free time.

Requirements

Installation

git clone https://github.com/s-codes14/node-website-scrapper.git

git clone https://github.com/S-codes14/phantom-scrape-plugin.git

Usage

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

scrape({
    urls: ['https://www.instagram.com/sbongumusas/'],
    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.