Fellas!
I have one nasty page to parse but can\'t figure out how to extract correct data blocks from it using Simple HTML DOM, because it has no CSS child selector suppo
I had the same issue, and used the children method to grab just the first level items.
And here's the Simple HTML Dom code to get just the first level li items:
$html = file_get_html( $url );
$first_level_items = $html->find( '.my-list', 0)->children();
foreach ( $first_level_items as $item ) {
... do stuff ...
}