90crew-node-browser-history 中文文档教程

发布于 3年前 浏览 20 项目主页 更新于 3年前

90crew Fork Version

BrowserWindowsMacLinux
Google Chrome
Maxthon--
Microsoft Edge-
Mozilla Firefox
Opera-
Seamonkey-
Torch--
Vivaldi--
Brave-
Avast Browser-
  • 크롬 브라우저 한정 (getChromeHistory only)
  • 윈도우/맥 환경으로 한정

용도에 맞게 크롬 브라우저, 윈도우/맥 환경으로 제한하여 패키지의 용량을 줄인 node-browser-history의닄의 랄의。

How to Use

const date = new Date();
const dateISOString = date.toISOString();

history.getChromeHistory(20, dateISOString).then(history => {
            console.log(history);
}

---------------------------------------------------------------------------------

node-browser-history

该模块将从常见的互联网浏览器收集浏览器历史记录。 给定一个时间框架。

Supported operating systems

  • Windows
  • Mac
  • Linux (only Firefox and Chrome)

Supported browsers

Chrome 傲游 Firefox 歌剧 SeaMonkey 手电筒 维瓦尔第 勇敢 Microsoft Edge Avast Browser

BrowserWindowsMacLinux
Google Chrome
Maxthon--
Microsoft Edge-
Mozilla Firefox
Opera-
Seamonkey-
Torch--
Vivaldi--
Brave-
Avast Browser-

How to Install

npm install node-browser-history

yarn install node-browser-history

Notes

  • You may experience slow downs when dealing with browser that have a larger browser history.

How to Use

const BrowserHistory = require('node-browser-history');


//Only All Support Browser History

/**
 * Gets the history for the Specified browsers and time in minutes.
 * Returns an array of browser records.
 * @param historyTimeLength | Integer
 * @returns {Promise<array>}
 */
getAllHistory(10).then(function (history) {
  console.log(history);
});



/**
 * Gets Firefox history
 * @param historyTimeLength
 * @returns {Promise<array>}
 */
getFirefoxHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Gets Seamonkey History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getSeaMonkeyHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Gets Chrome History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getChromeHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Opera History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getOperaHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Torch History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getTorchHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Brave History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getBraveHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Maxthon History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getMaxthonHistory(10).then(function (history) {
  console.log(history);
});

/**
 * Get Vivaldi History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getVivaldiHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Internet Explorer History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getIEHistory(10).then(function (history) {
  console.log(history);
});

90crew Fork Version

BrowserWindowsMacLinux
Google Chrome
Maxthon--
Microsoft Edge-
Mozilla Firefox
Opera-
Seamonkey-
Torch--
Vivaldi--
Brave-
Avast Browser-
  • 크롬 브라우저 한정 (getChromeHistory only)
  • 윈도우/맥 환경으로 한정

용도에 맞게 크롬 브라우저, 윈도우/맥 환경으로 제한하여 패키지의 용량을 줄인 node-browser-history의 fork 버전입니다.

How to Use

const date = new Date();
const dateISOString = date.toISOString();

history.getChromeHistory(20, dateISOString).then(history => {
            console.log(history);
}

---------------------------------------------------------------------------------

node-browser-history

This module will gather browser history from common internet browsers. Given a time frame.

Supported operating systems

  • Windows
  • Mac
  • Linux (only Firefox and Chrome)

Supported browsers

Chrome Maxthon Firefox Opera SeaMonkey Torch Vivaldi Brave Microsoft Edge Avast Browser

BrowserWindowsMacLinux
Google Chrome
Maxthon--
Microsoft Edge-
Mozilla Firefox
Opera-
Seamonkey-
Torch--
Vivaldi--
Brave-
Avast Browser-

How to Install

npm install node-browser-history

OR

yarn install node-browser-history

Notes

  • You may experience slow downs when dealing with browser that have a larger browser history.

How to Use

const BrowserHistory = require('node-browser-history');


//Only All Support Browser History

/**
 * Gets the history for the Specified browsers and time in minutes.
 * Returns an array of browser records.
 * @param historyTimeLength | Integer
 * @returns {Promise<array>}
 */
getAllHistory(10).then(function (history) {
  console.log(history);
});



/**
 * Gets Firefox history
 * @param historyTimeLength
 * @returns {Promise<array>}
 */
getFirefoxHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Gets Seamonkey History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getSeaMonkeyHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Gets Chrome History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getChromeHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Opera History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getOperaHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Torch History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getTorchHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Brave History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getBraveHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Maxthon History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getMaxthonHistory(10).then(function (history) {
  console.log(history);
});

/**
 * Get Vivaldi History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getVivaldiHistory(10).then(function (history) {
  console.log(history);
});


/**
 * Get Internet Explorer History
 * @param historyTimeLength time is in minutes
 * @returns {Promise<array>}
 */
getIEHistory(10).then(function (history) {
  console.log(history);
});
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文