@GamiD Вот функция, там всего один простой запрос, думаю разберешься
func getSolution(key, token string) (string, error) { url := fmt.Sprintf("https://www.google.com/recaptcha/api2/reload?k=%s", key) payload := fmt.Sprintf("reason=q&c=%s&size=invisible", token) resp, err := http.Post(url, "application/x-www-form-urlencoded", strings.NewReader(payload)) if err != nil { return "", err } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return "", fmt.Errorf("Failed to retrieve solution: %v", resp.Status) } // Read the response body body, err := io.ReadAll(resp.Body) if err != nil { return "", err } re := regexp.MustCompile(`"rresp","(.*?)",`) match := re.FindStringSubmatch(string(body)) if len(match) < 2 { return "", fmt.Errorf("Failed to extract 'rresp' value from the response body") } solution := match[1] return solution, nil }Модуль Recaptcha 2.
-
Есть ли у кого модуль рекапчи (находится тут: BrowserAutomationStudio\apps\22.8.1\modules\ReCaptcha2, можно архивом? Я скачивал старый, вообще не о чём. Буду благодарен. Также не могли бы подсказать с чем связана ошибка при решении капчи capmonster "Recaptcha 2 image cache is empty, use Cache Mask Allow action before page with captcha load.", темы на форуме не помогли
-
@MoskovSkiy said in Модуль Recaptcha 2.:
Есть ли у кого модуль рекапчи (находится тут: BrowserAutomationStudio\apps\22.8.1\modules\ReCaptcha2, можно архивом? Я скачивал старый, вообще не о чём. Буду благодарен.
Вам быстрее было просто переустановить BAS ReCaptcha2.rar
Также не могли бы подсказать с чем связана ошибка при решении капчи capmonster "Recaptcha 2 image cache is empty, use Cache Mask Allow action before page with captcha load.", темы на форуме не помогли
разрешите кеш одноимённым действием