/// <summary> /// Main automation method /// </summary> public void run() { Console.WriteLine("[+] Automation started"); // initialize bcs object using token bcs = new BestCaptchaSolverAPI(ACCESS_TOKEN); try { browser_image(); requests_image(); browser_recaptchav2(); requests_recaptchav2(); browser_invisible(); requests_invisible(); } catch (Exception ex) { Console.WriteLine("[!] Error: " + ex.Message); } finally { Console.WriteLine("[+] Automation finished !"); Console.ReadLine(); } }
public static string SolverCaptcha(string imageBase64, string acess_token) { BestCaptchaSolverAPI bcs = new BestCaptchaSolverAPI(acess_token); Dictionary <string, string> d = new Dictionary <string, string>() { { "image", imageBase64 } }; string taskId = bcs.submit_image_captcha(d); Dictionary <string, string> apiResponse = bcs.retrieve(taskId); apiResponse.TryGetValue("text", out string captchaResultText); return(captchaResultText); }