Saturday, 15 June 2019

Parsing HTML

Im new to node , what I wanted is make a simple request to a Webseite from the server , then check if there is a certain class present inside the html document with .queryselector(".test")...I found a random library called jsdom , that allows me to parse the html string into a document so I can use DOM methods .My question : is this correct or is there a easier way to get a html document from a axios request ?Greetings

Submitted June 15, 2019 at 11:28PM by MedyGames

No comments:

Post a Comment