[Solved] Extract information from html page using css selector


You can use the following

Nodes = document.querySelectorAll(".bloco-dados li")
Data = [] // new array
for (I = 0; I < Nodes.length; I++) {
    DataName = Nodes[I].firstChild.innerText // <b> tag is the first child node of <li> tag
    DataName = DataName.substr(0, DataName.length - 1) // Remove last character (the colon)
    DataValue = Nodes[I].lastChild.innerText // <span> tag is the last child node of <li> tag
    Data[DataName] = DataValue
}
alert(Data["Room 1"])
alert(Data["Room 2"])
alert(Data["Room 3"])
alert(Data["Room 4"])
alert(Data["Room 5"])

solved Extract information from html page using css selector