Added profile scraping to Private.

This commit is contained in:
2020-02-24 00:31:36 +01:00
parent 70afe75eb4
commit 0ae7d2669a
4 changed files with 93 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ const moment = require('moment');
const http = require('./http');
function trim(str) {
if (!str) return null;
return str.trim().replace(/\s+/g, ' ');
}
@@ -194,6 +195,7 @@ function init(element, window) {
element,
el: element,
html: element.outerHTML || element.body.outerHTML,
text: trim(element.textContent),
...(window && {
window,
document: window.document,