Is the negation pseudo-class supported

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?

Yes you can use the :not() selector and all other selectors introduced by jQuery.

https://api.jquery.com/category/selectors/

As per my post it doesnt seem to work.

Can you share the sitemap?