0.0.27 • Published 11 months ago

html-pages-parser v0.0.27

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

html-pages-parser

Описание

npm module for parse html pages with options which you can provide

Установка

npm install html-pages-parser
const parser = require("html-pages-parser");
/**
 * @param {string} url - page url
 * @param {object} options - options for parser
 * @param {string} options.host - host proxy
 * @param {string | number} options.port - port proxy
 * @param {string} options.username - username proxy
 * @param {string} options.password - password proxy
 * @param {string[]} options.classesToRemove - array with classes by which the parser delete the elements //optional has default array for crypto sites
 * @param {string[]} options.tagsToRemove - array with tags which the parser delete the elements //optional has default array for crypto sites
 * @param {string[]} options.textToRemove - array with text which the parser delete the elements with this text //optional has default array for crypto sites
 */
//Proxy is not required, you can use library without proxy
//(if you don't use proxy or your proxy is incorrect parser working with default settings)
async function getDataFromPage(url, options) {
  const data = await parser(url, options); // return string data
  return data;
}

// Example:
const result = await getDataFromPage("https://example.com");
console.log(result);
0.0.24

1 year ago

0.0.25

11 months ago

0.0.26

11 months ago

0.0.27

11 months ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago