dimanche 26 février 2017

How to use JSOUP to parse HTML code that doesn't contain id's

I am trying to scrape timetable information off my universities webpage as part of a project where I am making a timetable android application, but all the examples I seem to find on the internet scrape by use of ids which do not appear in the HTML code.

<tr>
    <td style="border-bottom:3px solid #000000;" rowspan='1' >Mon </td>
    <td style="border-bottom:3px solid #000000;"> <img src="http://ift.tt/2lnxfg5" width="1" height="1"> </td>

This is how the code appears and I want to scrape the html code of each element. This code is consistent for the rest of the week ('Tue','Wed','Thu','Fri').

I would appreciate any help or advice to how to do this.




Aucun commentaire:

Enregistrer un commentaire