daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void timer9_Tick(object sender, EventArgs e)
  2.         {
  3.             try
  4.             {
  5.                 if (HHH)
  6.                 {
  7.                     var links = webBrowser1.Document.GetElementsByTagName("div");
  8.                     foreach (HtmlElement link in links)
  9.                     {
  10.                         if (link.GetAttribute("className") == "clearfix _60rh _gse")
  11.                         {
  12.                             var Name = link.OuterHtml.Split(new[] { "aria-label" }, StringSplitOptions.None)[1];
  13.                             var href = link.OuterHtml.Split(new[] { "id" }, StringSplitOptions.None)[1];
  14.                             var GetIdPost = href.Split(new[] { "page_members_", "recently_joined_", "local_members_", "self_bio_", "admins_moderators_", "friends_", "things_in_common_" }, StringSplitOptions.None)[1];
  15.  
  16.                             string IDPost = GetIdPost.Substring(0, 16);
  17.                             var IDSp = IDPost.Split(new[] { "\"" }, StringSplitOptions.RemoveEmptyEntries);
  18.                             var Names = Name.Split(new[] { "\"" }, StringSplitOptions.RemoveEmptyEntries);
  19.                             if (!IDs.Contains(IDSp[0]))
  20.                             {
  21.                                 IDs.Add(IDSp[0]);
  22.                                 listBox2.Items.Add("" + IDSp[0] + " : "+ Names[1]);
  23.                                 listBox2.SelectedItem = listBox2.Items[listBox2.Items.Count - 1];
  24.                                 label2.Text = "Member : " + IDs.Count;
  25.                                 pictureBox1.Visible = true;
  26.                             }
  27.                         }
  28.                     }
  29.                     if (this.webBrowser1.Document != null)
  30.                     {
  31.                         webBrowser1.Document.Window.ScrollTo(0, webBrowser1.Document.Window.Size.Height);
  32.                     }
  33.                 }
  34.                 else timer9.Stop();
  35.             }
  36.             catch { timer9.Stop(); label2.Text = "Member : " + IDs.Count + " All Members"; }
  37.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top