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)); }
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); }
public SubscriberBot(Writer Cons, DBmanager db) : base(Cons, db) { Name = "FollowingBot"; }
public UnsubscribeBot(Writer Cons, DBmanager db) : base(Cons, db) { Name = "UnFollowingBot"; }
public LikeBot(Writer Cons, DBmanager db) : base(Cons, db) { Name = "LikeBot"; }
public WorkSaveBoardBot(Writer Cons, DBmanager db) : base(Cons, db) { Name = "WorkSaveBoard"; }