shahin
Active Member
Hi there! Today I found a new problem that i can't resolve myself. Following this link "https://ucf.uscourts.gov/search?Cou...tName=&DebtorFirstName=&Amount=500&EnteredOn=" you will find a webpage where within an envelope the address of each name next to it is stored. The address only appears if the envelope is clicked. I would like to parse it but can't. Hope somebody out there help me grab that. Thanks. Here is what I tried with:
Code:
Sub BankruptcyAddress()
Dim http As New MSXML2.XMLHTTP60, html As New HTMLDocument
Dim posts As Object, link As Object
With http
.Open "GET", "https://ucf.uscourts.gov/search?Court=insb&CreditorLastName=&CreditorFirstName=&CaseNumber=&DebtorLastName=&DebtorFirstName=&Amount=500&EnteredOn=", False
.send
html.body.innerHTML = .responseText
End With
Set posts = html.getElementsByClassName("modal-body")
For Each link In posts
x = x + 1
Cells(x, 1) = link.getElementsByTagName("span")(1).innertext
Next link
Set http = Nothing: Set html = Nothing: Set posts = Nothing
End Sub