Example #1
0
        public Bot(Writer console, DBmanager db)
        {
            UserXpath          = "//ul[@class ='Followers-list-vZl']";
            FollowingUserXpath = "//ul[@class ='Following-list-1Gx']";
            Cons    = console;
            this.db = db;
            string chromeProfileName = (++profileCounter).ToString() + "BehanceBot";

            Сhrome = new ChromeBrowser(chromeProfileName);
            Сhrome.SetWindowSize(1280, 1000);
        }
Example #2
0
        public Bot(Writer console, CancellationToken token)
        {
            if (token.IsCancellationRequested)
            {
                return;
            }

            this.token = token;
            Cons       = console;

            db     = new DBmanager(console);
            rand   = new Random();
            Chrome = new ChromeBrowser("InstagramBotProfile");
            Chrome.SetWindowSize(500, 1000);
        }