339r

my code lol

May 2nd, 2019
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.14 KB | None | 0 0
  1. Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  2.         a = New Threading.Thread(AddressOf get_do)
  3.         a.Start()
  4.     End Sub
  5.     Sub get_do()
  6.         Try
  7.             user = w.DownloadString("https://www.instagram.com/" & TextBox1.Text)
  8.             Dim findtext As String = "(?<=profilePage_)(.*?)(?=" & """" & ")"
  9.             Dim doregex As MatchCollection = Regex.Matches(user, findtext)
  10.             iduser = (doregex(0).ToString)
  11.             infouser = w2.DownloadString("https://i.instagram.com/api/v1/users/" & iduser & "/info/")
  12.             Dim findtext2 As String = "(?<=" & """" & "profile_pic_id" & """" & ": " & """" & ")(.*?)(?=" & """" & ")"
  13.             Dim doregex2 As MatchCollection = Regex.Matches(infouser, findtext2)
  14.             idpic = (doregex2(0).ToString)
  15.             'MsgBox(idpic)
  16.             If ig.Like_Post_ID(idpic) And ig.Comment_ID(idpic, TextBox2.Text) Then
  17.                 MsgBox("Done")
  18.             Else
  19.                 MsgBox("Error")
  20.             End If
  21.         Catch ex As Exception
  22.             MsgBox("Error, can't get info usre")
  23.         End Try
  24.         a.Abort()
  25.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment