Advertisement
iemadxi

aaa

Jul 20th, 2018
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. Private Function checkusername() As Object
  2. Dim millisecondsTimeout As Integer = Conversions.ToInteger(Me.TextBox3.Text)
  3. While Not Me.OFF
  4. Try
  5. Dim webClient As WebClient = New WebClient()
  6. Try
  7. ServicePointManager.DefaultConnectionLimit = 600
  8. ServicePointManager.UseNagleAlgorithm = False
  9. ServicePointManager.Expect100Continue = False
  10. webClient.Proxy = Nothing
  11. webClient.Headers.Add("User-Agent", "Instagram 10.30.0 (iPhone7,1; iPhone OS 9_3_3; en_SA@calendar=gregorian; en-SA; scale=2.61; gamut=normal; 1080x1920) AppleWebKit/420+")
  12. webClient.Headers.Add("Cookie", Class12.string_9)
  13. Dim left As String = webClient.DownloadString("https://i.instagram.com/api/v1/feed/user/" + TextBox4.Text + "/username/")
  14. Dim flag As Boolean = Operators.CompareString(left, "{""items"": [], ""num_results"": 0, ""status"": ""ok""}", False) <> 0
  15. If flag Then
  16. Me.int_0 += 1
  17. Me.loops1()
  18. Else
  19. changeusername(user)
  20.  
  21. End If
  22. webClient.Dispose()
  23. Finally
  24. Dim flag As Boolean = webClient IsNot Nothing
  25. If flag Then
  26. CType(webClient, IDisposable).Dispose()
  27. End If
  28. End Try
  29. Thread.Sleep(millisecondsTimeout)
  30. Catch ex As Exception
  31. Try
  32. ServicePointManager.DefaultConnectionLimit = 600
  33. ServicePointManager.UseNagleAlgorithm = False
  34. ServicePointManager.Expect100Continue = False
  35. Dim text As String = check(String.Concat(New String() {"https://i.instagram.com/api/v1/users/search?q=", TextBox4.Text, "&access_token=", Guid.NewGuid().ToString().ToUpper(), "/"}))
  36. Dim flag As Boolean = Not (text.Contains("""username"": """ + TextBox4.Text + """") Or False)
  37. If flag Then
  38.  
  39. changeusername(user)
  40.  
  41. Else
  42. Me.int_0 += 1
  43. Me.loops1()
  44. End If
  45. Catch ex2 As Exception
  46. End Try
  47. Thread.Sleep(millisecondsTimeout)
  48. End Try
  49. End While
  50. Dim result As Object
  51. Return result
  52. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement