/// <summary> /// /// </summary> public LIKiller() { GoogleDriveService googleService = new GoogleDriveService(); JobApplications = googleService.getEasyJobsFromLISheet(); setupDriver(); }
/// <summary> /// /// </summary> public static void runLinkedInKill() { Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); Console.WriteLine("Welcome to LIKiller! Initializing LinkedIn Service..."); Killers.LIKiller liKiller = new LIKiller(); Console.WriteLine("Successfully initialized LinkedIn Killer."); Console.WriteLine("Applying to jobs..."); int[] results = liKiller.applyToJobs(); Console.WriteLine("Number of SUCCESSful applications on LinkedIn: " + results[0]); Console.WriteLine("Number of FAILed applications on LinkedIn: " + results[1]); Console.WriteLine("Completed all LinkedIn Searchs!"); Console.WriteLine("Initializing Google Drive Service..."); Killers.GoogleDriveService googleDriveService = new Killers.GoogleDriveService(); Console.WriteLine("Successfully initialized Google Drive Service."); Console.WriteLine("Writing application results to your google sheet..."); //TODO: Need to add calls to udpdate present entries string updateResponse = googleDriveService.CreateGoogleSheetsLIJobEntries(googleDriveService.Jobs); Console.WriteLine("Completed writing results to google sheets."); stopwatch.Stop(); Console.WriteLine("Thank you for using LIKiller!"); Console.WriteLine("-----SESSION STATS-----"); Console.WriteLine("Number of SUCCESSful applications on LinkedIn: " + results[0]); Console.WriteLine("Number of FAILed applications on LinkedIn: " + results[1]); Console.WriteLine("Application Run Time: {0:mm\\:ss}", stopwatch.Elapsed); Console.WriteLine("-----------------------"); }