@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 ошибка image cache is empty
-
Пробую гадать картинки через рукаптчу и капмонстра - в какой-то момент разгадывание останавливается с ошибкой "Recaptcha 2 image cache is empty, use Cache Mask Allow action before page with captcha load." В начало проекта добавил "Разрешить кеш *", но это не помогло.
-
@NickyOktavian , thank you!
-
-
-
Что за ошибка?
Moved Поддержка -
-