Exemplo n.º 1
0
        private void GetGroupUsers(string groupUrl)
        {
            var x = new GroupParser(groupUrl);

            x.GetEm();
            var list = x.UserHrefs;

            list.ForEach(AddMobile);
        }
Exemplo n.º 2
0
        // ToDo: check if each panel is Present!!
        public void MainLoop()
        {
            Helpers.GlobalDelay = 2000;

            SingleLoop();

            Helpers.Print("Main loop started");
            Helpers.Print("");

            GetGroupPage();

            var x = new GroupParser("https://www.facebook.com/groups/1379225572136343/members/");

            x.GetEm();

            /*
             *
             * oyy tgooooa
             *
             */

            x.UserHrefs.ForEach(e => {
                if (!_visited.Contains(e))
                {
                    Helpers.Print($"Getting {e}", ConsoleColor.Black);

                    _driver.Url = e;

                    SaveHrefToVisited(e);

                    Helpers.Wait(1000, 500);

                    GetAboutTab();

                    Helpers.ScrollToBottom();

                    var u = new User {
                        Url = e
                    };

                    _nav = new Navigator(u);

                    _nav.Perform();

                    Helpers.Print("\n ---- \n");
                    u.PrintUser();
                    u.Jsonise();
                }
                else
                {
                    Helpers.Print($"{e} alredy visited, skipping...", ConsoleColor.Black);
                }
            });
        }