fimad / scalpel

A high level web scraping library for Haskell.
Apache License 2.0
323 stars 43 forks source link

Add `atDepth` operator and misc fixes and optimizations #69

Closed fimad closed 5 years ago

fimad commented 5 years ago

atDepth allows for specifying the depth that a Selector must be at in relation to the previous Selector or root node. For example the below will select anchor tags that are direct children of a div tag.

  "div" // "a" `atDepth` 1

Issue #21