Fork me on GitHub
#beginners
<
2020-10-31
>
GGfpc17:10:28

Does anyone here use hickory for html parsing? I have this subset of the hickory format map

{:type :element, :attrs {:class "clear"}, :tag :br, :content nil}
"\n\n"
{:type :element, :attrs {:class "dataTitle"}, :tag :div, :content ["Born"]}
"\nin Nottingham, England, , The United Kingdom\n"
{:type :element, :attrs {:class "clear"}, :tag :br, :content nil}
"\n\n\n"
{:type :element, :attrs {:class "dataTitle"}, :tag :div, :content ["Website"]}
"\n"
And I'd like to select the text that comes after the element with :content ["Born"] I can select that element with
(->
  (s/find-in-text #"Born")
  (s/select html))
But I don't know how to get the text that comes after