예제 #1
0
 private void Start()
 {
     console.WriteLine("Start Bot.");
     Task.Run(() => Timer(TimeSpan.FromHours(4)));
     db = new DBmanager(console);
     Task.Run(() => Launch(new SubscriberBot(console, db), 200));
     Task.Run(() => Launch(new LikeBot(console, db), 200));
     Task.Run(() => Launch(new UnsubscribeBot(console, db), 250));
     Task.Run(() => Launch(new WorkSaveBoardBot(console, db), 300));
 }
예제 #2
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);
        }
예제 #3
0
 public SubscriberBot(Writer Cons, DBmanager db) : base(Cons, db)
 {
     Name = "FollowingBot";
 }
예제 #4
0
 public UnsubscribeBot(Writer Cons, DBmanager db) : base(Cons, db)
 {
     Name = "UnFollowingBot";
 }
예제 #5
0
 public LikeBot(Writer Cons, DBmanager db) : base(Cons, db)
 {
     Name = "LikeBot";
 }
 public WorkSaveBoardBot(Writer Cons, DBmanager db) : base(Cons, db)
 {
     Name = "WorkSaveBoard";
 }