J
James
Hi everyone,
The fragment below is from a table on a page I pull, (scrape), information
from. The fragment is one row of what is potentially several rows.
The items with id's I can get:
id="dgdBusSchedule__ctl1_lblDepartureDate" yields "06:11"
id="dgdBusSchedule__ctl1_lnkRouteNumber" yields "6"
The id's above change with each row - ... _ctl2_..., ... _ctl3_..., easy to
loop through.
The id's above is the major data items for my app. The last cell in the row
I cannot seem to get. It is the text which reads "University". It is the
destination of route 6. This item seems to have no discerning id, name or
tag, even the class is generic on this page.
What methods are used to iterate over a table and all of its rows/cells?
All opinions appreciated!
<td scope="row" class="gAltContentSection">
<span
id="dgdBusSchedule__ctl1_lblDepartureDate">06:11</span></td>
<td scope="row" class="gAltContentSection">
<a id="dgdBusSchedule__ctl1_lnkRouteNumber"
href="javascript:document.forms["frmBusStopScheduleResults"]["txtRouteId"].value
="30";document.forms["frmBusStopScheduleResults"]["txtRouteDepartureTime"].value
="371";gfnTransit_SwitchPostBackUrl("BusStopSchedule_Results.aspx|BusStopDetail.aspx","RouteSchedule_Results.aspx","frmBusStopScheduleResults","_blank","NOVIEWSTATE"RouteSchedulePostBack("","","frmBusStopScheduleResults","txtRouteNumber","6"">6</a></td>
<td scope="row" class="gAltContentSection">University</td>
The fragment below is from a table on a page I pull, (scrape), information
from. The fragment is one row of what is potentially several rows.
The items with id's I can get:
id="dgdBusSchedule__ctl1_lblDepartureDate" yields "06:11"
id="dgdBusSchedule__ctl1_lnkRouteNumber" yields "6"
The id's above change with each row - ... _ctl2_..., ... _ctl3_..., easy to
loop through.
The id's above is the major data items for my app. The last cell in the row
I cannot seem to get. It is the text which reads "University". It is the
destination of route 6. This item seems to have no discerning id, name or
tag, even the class is generic on this page.
What methods are used to iterate over a table and all of its rows/cells?
All opinions appreciated!
<td scope="row" class="gAltContentSection">
<span
id="dgdBusSchedule__ctl1_lblDepartureDate">06:11</span></td>
<td scope="row" class="gAltContentSection">
<a id="dgdBusSchedule__ctl1_lnkRouteNumber"
href="javascript:document.forms["frmBusStopScheduleResults"]["txtRouteId"].value
="30";document.forms["frmBusStopScheduleResults"]["txtRouteDepartureTime"].value
="371";gfnTransit_SwitchPostBackUrl("BusStopSchedule_Results.aspx|BusStopDetail.aspx","RouteSchedule_Results.aspx","frmBusStopScheduleResults","_blank","NOVIEWSTATE"RouteSchedulePostBack("","","frmBusStopScheduleResults","txtRouteNumber","6"">6</a></td>
<td scope="row" class="gAltContentSection">University</td>