Ejemplo n.º 1
0
        private void OpenLocation(string link, int count, InstagramAccount account)
        {
            var instagram = new InstagramControl();

            instagram.Login(account.AccountName, account.InstagramPass, false);
            Thread.Sleep(1000);
            instagram.GeoFollowing(link, count);
            instagram.Logout();
        }
Ejemplo n.º 2
0
        public void StartFollow(string tag, int count, InstagramAccount account)
        {
            var instagram = new InstagramControl();

            instagram.Login(account.AccountName, account.InstagramPass, false);
            Thread.Sleep(1000);
            instagram.TagFollowing(tag, count);
            Thread.Sleep(1000);
            instagram.Logout();
        }
Ejemplo n.º 3
0
        private void LikePosts(string[] posts, InstagramAccount account)
        {
            var insta = new InstagramControl();

            insta.RunInstagram();
            insta.Login(account.AccountName, account.InstagramPass, false);
            Thread.Sleep(1000);
            foreach (var post in posts)
            {
                insta.LikePost(post);
            }
            insta.Logout();
        }
Ejemplo n.º 4
0
        public void StartTask(InstagramAccount account, string[] names)
        {
            var instagram = new InstagramControl();

            instagram.RunInstagram();
            Thread.Sleep(1000);

            instagram.Login(account.AccountName, account.InstagramPass, false);
            Thread.Sleep(1000);
            foreach (string user in names)
            {
                instagram.UserNavigate(user);
                instagram.Unfollow();
                Thread.Sleep(1000);
            }
            instagram.Logout();
        }
Ejemplo n.º 5
0
        public void StartLike(string tag, int count, InstagramAccount account)
        {
            var instagram = new InstagramControl();

            instagram.Login(account.AccountName, account.InstagramPass, false);

            Thread.Sleep(2000);

            instagram.TagPostsFind(tag);
            postUrls = new string[count];

            Thread.Sleep(1000);

            for (int i = 0; i < count; i++)
            {
                var res = instagram.GetPostUrl();
                if (i != 0)
                {
                    if (postUrls[i - 1] != res)
                    {
                        postUrls[i] = res;
                    }
                    else
                    {
                        i--;
                    }
                }
                else
                {
                    postUrls[i] = res;
                }
            }
            //instagram.ReturnHome();
            instagram.ReturnHome();

            Thread.Sleep(2000);
            foreach (var item in postUrls)
            {
                instagram.LikePost(item);
            }

            //instagram.ReturnHome();
            instagram.Logout();
        }
Ejemplo n.º 6
0
        private void AddFollower(string[] namesArray, InstagramAccount account)
        {
            var instagram = new InstagramControl();

            instagram.RunInstagram();
            instagram.Login(account.AccountName, account.InstagramPass, firstUse);
            Thread.Sleep(1000);
            foreach (var name in namesArray)
            {
                instagram.UserNavigate(name);
                Thread.Sleep(1000);
                instagram.FollowTap();
                Thread.Sleep(500);
            }
            instagram.Logout();
            //BrowserControl browser = new BrowserControl();
            //browser.LoginInstagram(account.AccountName, account.InstagramPass);
            //browser.OpenPage(name);
            //Thread.Sleep(2000);
            //browser.FollowTap();
            //Thread.Sleep(1000);
            //browser.ExitAccount();
        }
Ejemplo n.º 7
0
 private void button30_Click(object sender, EventArgs e)
 {
     instagram.Logout();
 }