Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace instagramID
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- webBrowser1.Navigate("https://www.instagram.com/p/" + textBox1.Text + "/");
- button2_Click(sender, e);
- }
- private void button2_Click(object sender, EventArgs e)
- {
- bool F = true;
- var linkss = webBrowser1.Document.GetElementsByTagName("button");
- foreach (HtmlElement linksd in linkss)
- {
- if (linksd.GetAttribute("className") == "Z4IfV _0mzm- sqdOP yWX7d ")
- {
- linksd.InvokeMember("click");
- F = false;
- }
- }
- if (F)
- {
- timer1.Start();
- }
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- var linkss = webBrowser1.Document.GetElementsByTagName("li");
- foreach (HtmlElement linksd in linkss)
- {
- if (linksd.GetAttribute("className") == "gElp9 ")
- {
- var info = linksd.OuterHtml.Split(new string[] { "title=" }, StringSplitOptions.RemoveEmptyEntries);
- if (info != null)
- {
- string[] Array = { "commenttk", "insta_profille" };
- bool f = true;
- foreach (var i in info)
- foreach (var ia in Array)
- if (i.Contains(ia))
- f = false;
- if (!f)
- continue;
- var id = info[1].Split(new string[] { "\"" }, StringSplitOptions.RemoveEmptyEntries);
- var UserName = id[0];
- listBox1.Items.Add(UserName);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement