I'm scraping some content but want to exclude the last div within a div due to it being a Facebook related piece of content.
The following doesn't seem to work as a selector
div.post-body>:not(div:last)
I tested in the console with
$("div.post-body>:not(div:last)")
and get the correct results.
Is there a way to exclude a child element when using a selector?