Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.72 KB | None | 0 0
  1.  
  2.    Private Sub hermanni(ByVal url As String)
  3.       Dim browser As New WebBrowser
  4.       browser.Navigate(url)
  5.  
  6.       While browser.IsBusy = True
  7.          Application.DoEvents()
  8.       End While
  9.  
  10.       Dim value = parsaa(browser.Document)
  11.    End Sub
  12.  
  13.    Private Function parsaa(ByVal document As HtmlDocument) As String
  14.       For Each Form As HtmlElement In document.Forms
  15.          For Each Input As HtmlElement In Form.GetElementsByTagName("input")
  16.             If Input.GetAttribute("type") = "hidden" And Input.GetAttribute("name") = "upload_id" And Input.GetAttribute("value").Length = 55 Then
  17.                Return Input.GetAttribute("value")
  18.             End If
  19.          Next
  20.       Next
  21.       Return ""
  22.    End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement