Open AMJ-7 opened 2 years ago
Why not use either regex or AWK+regex for this?
WIth SwiftSoup: Parse html and use selector syntax [1] using a CSS query like body > b:eq(2)
(b:eq(2)
because Category
is inside third b
element). You may use :containsOwn
or :matchesOwn
pseudo selector rather than :eq
if those elements' position will change. After that, call nextElementSibling
method on the result you got to get the text after that b
element. I haven't tried this, but this should work IIAR.
[1] https://github.com/scinfu/SwiftSoup#use-selector-syntax-to-find-elements.
how can get value from: Category