How can I unpack a non-standard HTML:
<body>
<div class="open">
<div style='style'>Raw name 1</div>
<p>Text_1</p>
<p>Text_2</p>
<p>Text_3</p>
<p>Text_4</p>
<p>Text_5</p>
<div style='style'>Raw name 5</div>
<p>Text_1</p>
<p>Text_2</p>
<p>Text_3</p>
<p>Text_4</p>
<p>Text_5</p>
</div>
</body>
I want to get a result similar to:
['Raw name 1', Text_1, Text_2, Text_3, Text_4, Text_5]
...
['Raw name 5', Text_1, Text_2, Text_3, Text_4, Text_5]
I tried to do something on this example How to parse a HTML table with Nokogiri?, but nothing happened.
Is it possible to obtain information that I want from such HTML?