You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If guard is used within the inner scraper passed to chroot scalpel should backtrack and try to find a tag that matches if the first tag fails. Currently this backtracking does not happen.
For example,
scrapeStringLike "<a>foo</a><a>bar</a><a>baz</a>"$ chroot "a"$do
t <- text Any
guard ("b"`isInfixOf` t)
html Any
Currently returns Nothing, but should return Just "<a>bar</a>"
The text was updated successfully, but these errors were encountered:
This commit adds the resolutions to #23 and #25 to README.md under a
new tips & tricks section. Full source code for each is given in a new
example as well.
Additionally a backtracking bug was found in `chroot` while
documenting these tricks and is fixed in this commit as well.
If guard is used within the inner scraper passed to
chroot
scalpel should backtrack and try to find a tag that matches if the first tag fails. Currently this backtracking does not happen.For example,
Currently returns
Nothing
, but should returnJust "<a>bar</a>"
The text was updated successfully, but these errors were encountered: