K
K
Ken Jee2019-03-14 22:09:26
Node.js
Ken Jee, 2019-03-14 22:09:26

What is the preferred NodeJS package for HTML parsing?

There is a task to analyze server responses (status code, headers, etc.) and parse the html page. I've looked at quite a few npmjs packages and am a little confused. For many packages, commits have not been made for 2-3 years already ... Please advise actual html parsing packages for NodeJS.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2019-03-14
@Machez

https://github.com/jsdom/jsdom

J
Just A Bit, 2019-03-20
@justabit

It all depends on exactly what you need. You can also use a regular expression, which will be faster than the packages mentioned above.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question