Question Need Help With A Program Using Search In A Site

amagos10

New member
Joined
Mar 25, 2014
Messages
1
Programming Experience
Beginner
I want to make a program that i specify the ip and ports and when i search i get the results back, from this site: http://www.ipfingerprints.com/

Screenshot_2.jpg
The code for the button is:
VB.NET:
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
    Try
        For Each elem1 As HtmlElement In WebBrowser2.document.GetElementsByTagName("Scan")
            WebBrowser2.document.GetElementById("remoteHost").SetAttribute("value", TextBox5.Text)
            WebBrowser2.document.GetElementById("start_port").SetAttribute("value", TextBox6.Text)
            WebBrowser2.document.GetElementById("end_port").SetAttribute("value", TextBox7.Text)
            If elem1.GetAttribute("class") = "input-button" Then
                elem1.InvokeMember("click")
            End If
        Next
    Catch ex As Exception
        MessageBox.Show(ex.Message)
    End Try
End Sub

Any help would be
appreciated
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,561
Location
Norway
Programming Experience
10+
Also note that ToS for the site you refer to specifically prohibit "To invoke the service using automated tools". You'll find that a common term in many web sites providing a service meant for simple manual user interaction.
 
Top Bottom