0.2.0 • Published 5 years ago

node-chrome-page v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

node-chrome-page

Simply fetch any web page using Chrome browser after the page's JavaScript is loaded. Now using Puppeteer with stealth mode.


Usage:

var chromePage = require("node-chrome-page");
var chrome = new chromePage();
chrome.page(link, cacheTime, cacheFile);
  • link: Page to fetch
  • cacheTime: Time to cache the page in seconds. (OPTIONAL)
  • cacheFile: File to use for cache. (OPTIONAL)

Example (latest):

var chromePage = require("node-chrome-page");
var chrome = new chromePage();
chrome
  .page("https://google.com", 10, "node-chrome-page.json")
  .then(function(html) {
    console.log(html);
  })
  .catch(function(error) {
    console.log(error);
  });

Example (till v0.0.8):

require("node-chrome-page")
  .page("https://google.com", 10)
  .then(function(html) {
    console.log(html);
  })
  .catch(function(error) {
    console.log(error);
  });

Version history:

v0.0.6: Added cache support.

v0.0.9: Fixed a serious cache bug.

v0.1.1: Added cache file name support.

v0.1.4: Added large cache support using node-big-cache: https://www.npmjs.com/package/node-big-cache

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago