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
I am having big trouble exctracting a list of Elements and I had to resort to parsing with Jsoup after parsing with Jspoon. What I've tried so far:
In terms of List, I get ClassCastException, @selector("table") var tables: List? = null
whereas in Elements @selector("table") var tables: Elements? = null
I get 0 elements.
I need that as I want to get (as probably guessed so far) a list of tables including their tags, much like what I would get if I did:
val tables = Jsoup.parse(incomingText).select("table")
for(table in tables)
println(table.outerHtml())
Please let me know if more clarification info is required!
The text was updated successfully, but these errors were encountered:
I am having big trouble exctracting a list of Elements and I had to resort to parsing with Jsoup after parsing with Jspoon. What I've tried so far:
In terms of List, I get ClassCastException,
@selector("table") var tables: List? = null
whereas in Elements
@selector("table") var tables: Elements? = null
I get 0 elements.
I need that as I want to get (as probably guessed so far) a list of tables including their tags, much like what I would get if I did:
val tables = Jsoup.parse(incomingText).select("table")
for(table in tables)
println(table.outerHtml())
Please let me know if more clarification info is required!
The text was updated successfully, but these errors were encountered: