dimanche 26 octobre 2014

Using jsoup to extract specific cell of table


Vote count:

0




I am trying to use jsoup to extract specific cell of table. I have this code



Element vystraha = doc.select("#hzs-table > tbody > tr").get(oblast).select("td").get(1);


"oblast" is set to 0. So if I understand it correctly this should find table (element) with id "hzs-table" then move to its tbody then to first tr (or second if I set "oblast" to 1) and then select second cell of this row. However compiler shows indexOutOfBounds exception on get(oblast). Table that I am trying to extract is here http://ift.tt/1t50Euo


Thanks in forward



asked 46 secs ago

horin

333






Using jsoup to extract specific cell of table

Aucun commentaire:

Enregistrer un commentaire