Here is an example of what's contained in the page
I parsed the above and was able to get the data ie; Traffic Stop and 5600 S Yale
into two variable arrays
Something like this
But guys IM lost ... no idea how to even start in B4A
the website is here https://www.tulsapolice.org/live-calls-/police-calls-near-you.aspx
Help is much appreciated
B4X:
<table id="ctl00_ctl00_ctl00_ContentPlaceHolderDefault_COTSectionTextpagePlaceHolder_ctl00_COT_LiveCallsInArea_9_grdDivision03" align="Center" cellspacing="0" cellpadding="4" border="0" style="color:#333333;width:470px;border-collapse:collapse;"><tbody><tr style="color:White;background-color:#5D7B9D;font-weight:bold;"><th align="left" abbr="Description" scope="col">
Description
</th><th align="left" abbr="Location" scope="col">
Location
</th></tr><tr style="color:#333333;background-color:#F7F6F3;"><td align="center">
Traffic Stop
</td><td>
5600 S YALE
</td></tr><tr style="color:#284775;background-color:White;"><td align="center">
Burglar Alarm
</td><td>
1300 E 46 ST S
</td></tr>
I parsed the above and was able to get the data ie; Traffic Stop and 5600 S Yale
into two variable arrays
Something like this
B4X:
If myTable IsNot Nothing Then
For Each myElement As HtmlElement In myTable.GetElementsByTagName("TR")
Dim myTDTags As HtmlElementCollection = myElement.GetElementsByTagName("TD")
If myTDTags.Count = 2 Then
If myTDTags(0).InnerText = "Description" Or myTDTags(1).InnerText = "Location" Then
' Dont add
Else
myPubAr.Add(myTDTags(0).InnerText)
myLocAr.Add(myTDTags(1).InnerText)
End If
End If
Next
End If
But guys IM lost ... no idea how to even start in B4A
the website is here https://www.tulsapolice.org/live-calls-/police-calls-near-you.aspx
Help is much appreciated