swift - Access <li> elements inside HTML -


i trying parse html in swift project stuck.

i trying access info inside of <li>, example:

li source="page/external" size="3.244 mb" rate="128 kb/s" link="13770751aje0" song="on run (mount remix)" singer="kytes" file_id="3ddqom328a" duration="212" 

how access info size in swift?

i using kanna. xpath is:

"/html/body/div[2]/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/ol/li" 

use attribute axis, like:

/html/body/div[2]/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/ol/li/@size 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -