captchakraken 3.2.0__tar.gz → 4.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {captchakraken-3.2.0 → captchakraken-4.0.0}/AGENTS.md +7 -11
- captchakraken-4.0.0/LICENSE +165 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/NOTICE +4 -4
- captchakraken-4.0.0/PKG-INFO +372 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/README.md +10 -9
- {captchakraken-3.2.0 → captchakraken-4.0.0}/pyproject.toml +27 -13
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/__init__.py +43 -46
- captchakraken-4.0.0/src/captchakraken/action_types.py +86 -0
- captchakraken-4.0.0/src/captchakraken/captchakraken.config.json +416 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/cli.py +66 -30
- captchakraken-4.0.0/src/captchakraken/clipvideo.py +258 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/humanize.py +141 -10
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/image_processor.py +3 -7
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/keyframes.py +96 -14
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/kinds.py +14 -2
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/models.json +28 -3
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/page_solver.py +621 -259
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/planner.py +298 -47
- captchakraken-4.0.0/src/captchakraken/pointer/__init__.py +20 -0
- captchakraken-4.0.0/src/captchakraken/pointer/detector.py +333 -0
- captchakraken-4.0.0/src/captchakraken/pointer/elements.py +273 -0
- captchakraken-4.0.0/src/captchakraken/pointer/heads.py +163 -0
- captchakraken-4.0.0/src/captchakraken/pointer/layout.py +319 -0
- captchakraken-4.0.0/src/captchakraken/pointer/marks.py +184 -0
- captchakraken-4.0.0/src/captchakraken/pointer/server.py +146 -0
- captchakraken-4.0.0/src/captchakraken/pointer/service.py +553 -0
- captchakraken-4.0.0/src/captchakraken/pointer/vllm_plugin.py +109 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/prompts.py +111 -34
- captchakraken-4.0.0/src/captchakraken/selectors.py +287 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/server_manager.py +18 -0
- captchakraken-4.0.0/src/captchakraken/solver.py +332 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/tool_calls/board_painted.py +11 -6
- captchakraken-4.0.0/src/captchakraken/tool_calls/fill_tracker.py +152 -0
- captchakraken-4.0.0/src/captchakraken/tool_calls/find_checkbox.py +21 -0
- captchakraken-4.0.0/src/captchakraken/tool_calls/find_grid.py +365 -0
- captchakraken-4.0.0/src/captchakraken/tool_calls/slide_tracker.py +1102 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/verdicts.py +16 -0
- captchakraken-4.0.0/tests/drawing.py +30 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/fake_dom.py +13 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/captchafox.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/geetest_v4_bar.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/hcaptcha_dark.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/hcaptcha_light_compact_hover_1.5x.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/hcaptcha_ticked.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/recaptcha_dark_compact_2x.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/recaptcha_light.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/recaptcha_ticked_1.5x.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/turnstile_dark_flexible_2x.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/turnstile_light.png +0 -0
- captchakraken-4.0.0/tests/fixtures/checkbox/turnstile_passed.png +0 -0
- captchakraken-4.0.0/tests/fixtures/cursory_cross_port.json +921 -0
- captchakraken-4.0.0/tests/fixtures/grid/groceries_6x3_mac.png +0 -0
- captchakraken-4.0.0/tests/fixtures/grid/photos_3x3_offcentre.png +0 -0
- captchakraken-4.0.0/tests/fixtures/hcaptcha_enclave/challenge.html +13 -0
- captchakraken-4.0.0/tests/fixtures/hcaptcha_enclave/enclave.html +16 -0
- captchakraken-4.0.0/tests/fixtures/hcaptcha_enclave/host.html +13 -0
- captchakraken-4.0.0/tests/slide_boards.py +259 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_blank_board_is_not_photographed.py +3 -6
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_board_that_never_repeats_is_animated.py +1 -2
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_board_that_will_not_film_may_already_be_solved.py +1 -2
- captchakraken-4.0.0/tests/test_a_board_with_no_answer_is_skipped.py +66 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_checkbox_is_clicked_not_watched.py +41 -9
- captchakraken-4.0.0/tests/test_a_frame_keeps_its_colours_and_its_pixels.py +97 -0
- captchakraken-4.0.0/tests/test_a_hold_is_held_until_the_widget_completes.py +306 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_new_board_ends_the_film.py +3 -3
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_pin_reads_its_own_entry.py +2 -3
- captchakraken-4.0.0/tests/test_a_pointer_answer_always_carries_points.py +117 -0
- captchakraken-4.0.0/tests/test_a_pointer_model_is_sent_the_bare_board.py +147 -0
- captchakraken-4.0.0/tests/test_a_reask_is_a_different_sample.py +69 -0
- captchakraken-4.0.0/tests/test_a_refused_pointer_answer_moves_to_the_next.py +294 -0
- captchakraken-4.0.0/tests/test_a_repeat_on_a_silent_board.py +88 -0
- captchakraken-4.0.0/tests/test_a_repeated_answer_is_not_re_performed.py +138 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_replaced_board_has_not_failed_yet.py +1 -2
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_slow_camera_does_not_stretch_the_burst.py +1 -2
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_slow_model_does_not_extend_the_burst.py +1 -2
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_still_burst_stops_at_the_floor.py +1 -2
- captchakraken-4.0.0/tests/test_a_typed_captcha_is_shown_with_its_box.py +36 -0
- captchakraken-4.0.0/tests/test_a_typed_code_is_read_by_the_model_and_the_letter_detector_together.py +104 -0
- captchakraken-4.0.0/tests/test_a_video_generation_sends_the_clip.py +181 -0
- captchakraken-4.0.0/tests/test_a_widget_inside_an_enclave_is_found.py +190 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_widget_is_waited_for.py +2 -3
- captchakraken-4.0.0/tests/test_an_element_is_outlined_by_its_mask.py +142 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_an_unusable_answer_is_not_a_dead_page.py +1 -2
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_cli_stdout_is_the_wire_between_the_ports.py +2 -2
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_cycling_board_waits_for_its_screen.py +3 -3
- captchakraken-4.0.0/tests/test_detector_weights_are_fetched_once_and_checked.py +153 -0
- captchakraken-4.0.0/tests/test_earlier_screens_are_context_before_the_board.py +101 -0
- captchakraken-4.0.0/tests/test_every_captcha_is_asked_the_same_prompt.py +104 -0
- captchakraken-4.0.0/tests/test_every_trained_vendor_is_found.py +120 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_expert_reaches_the_wire.py +1 -2
- captchakraken-4.0.0/tests/test_find_checkbox_rejects_what_is_not_a_checkbox.py +94 -0
- captchakraken-4.0.0/tests/test_find_grid_reads_the_detectors_cells.py +149 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_freshness_check.py +2 -4
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_grid_detection_ci.py +9 -19
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_grid_dims_must_be_possible.py +6 -3
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_grid_never_pairs_tiles.py +5 -9
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_hcaptcha_badge_detection.py +34 -18
- captchakraken-4.0.0/tests/test_hcaptcha_boards_reach_the_right_expert.py +28 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_humanizer.py +63 -0
- captchakraken-4.0.0/tests/test_keyframes_compare_each_pair_once.py +41 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_min_pixels_upscale.py +6 -5
- captchakraken-4.0.0/tests/test_old_config_names_still_work.py +25 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_one_ask_cannot_outlive_the_solve.py +0 -1
- captchakraken-4.0.0/tests/test_one_prompt_answers_every_puzzle.py +352 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_our_own_gesture_is_not_animation.py +2 -2
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_overlay_is_what_the_model_reads.py +1 -1
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_page_solver.py +45 -410
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_pinned_model.py +6 -6
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_public_contract.py +1 -1
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_recaptcha_chipped_board.py +34 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_recaptcha_dynamic_more_is_not_an_error.py +7 -7
- captchakraken-4.0.0/tests/test_slide_tracker.py +387 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_stale_handle_after_submit.py +0 -1
- captchakraken-4.0.0/tests/test_the_client_runs_without_opencv.py +42 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_the_film_outlives_the_answer.py +3 -6
- captchakraken-4.0.0/tests/test_the_offset_head_learns.py +39 -0
- captchakraken-4.0.0/tests/test_the_pointer_reads_its_answer_from_one_prefill.py +102 -0
- captchakraken-4.0.0/tests/test_the_pointer_server_is_a_managed_endpoint.py +83 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_the_second_look_believes_its_recording.py +4 -2
- captchakraken-4.0.0/tests/test_the_selector_config_is_the_table.py +162 -0
- captchakraken-4.0.0/tests/test_the_slide_driver_steers_by_what_it_sees.py +192 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_the_worker_protocol_survives_a_bad_request.py +2 -2
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_vendor_hint_decides_the_expert.py +11 -4
- captchakraken-4.0.0/tests/test_your_own_selectors_find_your_captcha.py +42 -0
- captchakraken-3.2.0/LICENSE +0 -145
- captchakraken-3.2.0/PKG-INFO +0 -349
- captchakraken-3.2.0/src/captchakraken/action_types.py +0 -55
- captchakraken-3.2.0/src/captchakraken/selectors.py +0 -194
- captchakraken-3.2.0/src/captchakraken/solver.py +0 -251
- captchakraken-3.2.0/src/captchakraken/tool_calls/find_checkbox.py +0 -66
- captchakraken-3.2.0/src/captchakraken/tool_calls/find_grid.py +0 -1283
- captchakraken-3.2.0/src/captchakraken/tool_calls/track_piece.py +0 -120
- captchakraken-3.2.0/tests/fixtures/cursory_cross_port.json +0 -921
- captchakraken-3.2.0/tests/test_a_grid_is_a_regular_lattice.py +0 -70
- captchakraken-3.2.0/tests/test_a_reask_is_a_different_sample.py +0 -80
- captchakraken-3.2.0/tests/test_a_repeated_answer_is_not_re_performed.py +0 -53
- captchakraken-3.2.0/tests/test_find_checkbox_rejects_what_is_not_a_checkbox.py +0 -84
- captchakraken-3.2.0/tests/test_grid_detection.py +0 -65
- captchakraken-3.2.0/tests/test_grid_flank_contrast.py +0 -84
- captchakraken-3.2.0/tests/test_grid_geometry_gates.py +0 -92
- captchakraken-3.2.0/tests/test_grid_noisy_gutter.py +0 -94
- captchakraken-3.2.0/tests/test_grid_off_lattice_clusters.py +0 -40
- captchakraken-3.2.0/tests/test_grid_overcount_falls_back.py +0 -80
- captchakraken-3.2.0/tests/test_slide_reads_the_piece_off_the_page.py +0 -94
- {captchakraken-3.2.0 → captchakraken-4.0.0}/.gitignore +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/Dockerfile +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/examples/README.md +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/examples/_harness.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/examples/demoRecaptcha.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/examples/watch_playwright.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/examples/with_local_gguf.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/examples/with_playwright.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/config.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/errors.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/overlay.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/pinned_model.json +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/timing.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/updater.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/src/captchakraken/watcher.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/fixtures/vendor_verdicts.json +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_board_is_routed_and_watched_once_it_has_painted.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_burst_cannot_trip_its_own_deadline.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_capture_never_clips_the_page.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_missing_prompt_is_not_a_reason_to_wait.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_refusal_keeps_its_machine_readable_half.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_refused_clip_is_not_re_asked.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_round_that_did_nothing_waits_for_nothing.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_solved_board_is_not_lost_to_a_typed_action.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_a_still_board_is_not_filmed.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_animated_solve_budget.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_api_error_is_exported.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_api_errors.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_browser_compat.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_credentials_file.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_empty_answer_still_submits.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_endpoint_is_dialled_once.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_every_keyframe_write_names_its_stem.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_expert_routing.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_fetch_command.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_geetest_accept_is_a_signal.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_geetest_done_needs_no_bounding_box.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_geetest_submit_button.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_grid_round_pays_once.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_licensed_models.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_outcome_reporting.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_pixel_parser.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_private_models.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_routing_headers.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_selected_fields.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_setup_sh_model_ids.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_solver.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_the_legacy_model_warning_is_one_text.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_the_notice_travels_with_the_package.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_the_two_ports_share_one_mouse.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_the_vendor_says_whether_the_round_was_taken.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_the_wait_gate_metric.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_thinking_is_off_on_every_runtime.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_vendor_gates_are_not_keyed_on_unknown.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_version_matches_manifest.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/test_watcher.py +0 -0
- {captchakraken-3.2.0 → captchakraken-4.0.0}/tests/virtual_clock.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# captchakraken (PyPI)
|
|
2
2
|
|
|
3
|
-
The Python **engine and CLI**:
|
|
3
|
+
The Python **engine and CLI**: CPU element detection plus a planner that asks a
|
|
4
4
|
fine-tuned vision model what to do, and a page driver that performs it in a
|
|
5
5
|
Playwright browser.
|
|
6
6
|
|
|
@@ -64,7 +64,7 @@ captchakraken path/to/captcha.png # prints a JSON click plan
|
|
|
64
64
|
|
|
65
65
|
Other CLI modes, all printing JSON: `captchakraken server start|stop|status|run`
|
|
66
66
|
manages a local vLLM server, `captchakraken fetch` updates weights and the
|
|
67
|
-
serving stack together, and the
|
|
67
|
+
serving stack together, and the detector tool calls (`find-grid`, `find-checkbox`,
|
|
68
68
|
`get-numbered-grid`, `detect-selected`, …) are exposed one per subcommand. The
|
|
69
69
|
module docstring of `captchakraken/cli.py` lists every mode with its arguments.
|
|
70
70
|
|
|
@@ -111,15 +111,11 @@ generation and the weights drift apart.
|
|
|
111
111
|
- **Never print an API key** into a transcript, a log, or a commit. Use
|
|
112
112
|
`create_api_key`, which writes it to disk instead. `captchakraken.env` and
|
|
113
113
|
`.env` hold keys and are never committed.
|
|
114
|
-
- **
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
for it, and do not quote accuracy figures for it — none are published. Verify
|
|
120
|
-
what is serving with `GET /v1/models`.
|
|
121
|
-
- **Respect the licence.** Building automation with this is fine; selling the
|
|
122
|
-
solve, or shipping it inside a browser or automation product, is not. See
|
|
114
|
+
- **Midnight V2 4B Q4 is the default self-hosted and hosted model.** The v2
|
|
115
|
+
weights are downloadable under LGPL-3.0-only. Older clients keep using their
|
|
116
|
+
registered chat-completion model because the protocols are not interchangeable.
|
|
117
|
+
- **Respect the licence.** CaptchaKraken and all its models are LGPL-3.0-only;
|
|
118
|
+
commercial use and integration are permitted under those terms. See
|
|
123
119
|
[LICENSE](./LICENSE) and
|
|
124
120
|
[docs/licensing.md](https://github.com/CaptchaKraken/CaptchaKraken/blob/main/docs/licensing.md).
|
|
125
121
|
- **Changing this package's own code?** Its rules are in
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
CaptchaKraken
|
|
2
|
-
Copyright (c) 2026 CaptchaKraken LLC.
|
|
2
|
+
Copyright (c) 2026 CaptchaKraken LLC.
|
|
3
3
|
|
|
4
4
|
This product includes third-party software. The notices below are required by
|
|
5
|
-
those components' licences and do not change the terms of the
|
|
6
|
-
|
|
7
|
-
not listed here.
|
|
5
|
+
those components' licences and do not change the terms of the GNU Lesser
|
|
6
|
+
General Public License, version 3 only (LGPL-3.0-only), which governs
|
|
7
|
+
everything in this repository that is not listed here.
|
|
8
8
|
|
|
9
9
|
────────────────────────────────────────────────────────────────────────────
|
|
10
10
|
Cursory — mouse trajectory generation
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: captchakraken
|
|
3
|
+
Version: 4.0.0
|
|
4
|
+
Summary: Captcha-solving engine and CLI: a v2 pointer model and CNN element detector for image grids, click and drag puzzles, sliders, distorted text and animated challenges. Hosted API or self-hosted on vLLM.
|
|
5
|
+
Project-URL: Homepage, https://captchakraken.com
|
|
6
|
+
Project-URL: Documentation, https://github.com/CaptchaKraken/CaptchaKraken#readme
|
|
7
|
+
Project-URL: Source, https://github.com/CaptchaKraken/CaptchaKraken
|
|
8
|
+
Project-URL: Issues, https://github.com/CaptchaKraken/CaptchaKraken/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/CaptchaKraken/CaptchaKraken/blob/main/CHANGELOG.md
|
|
10
|
+
Author: Jake Writer
|
|
11
|
+
License: GNU LESSER GENERAL PUBLIC LICENSE
|
|
12
|
+
Version 3, 29 June 2007
|
|
13
|
+
|
|
14
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
15
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
16
|
+
of this license document, but changing it is not allowed.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
This version of the GNU Lesser General Public License incorporates
|
|
20
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
21
|
+
License, supplemented by the additional permissions listed below.
|
|
22
|
+
|
|
23
|
+
0. Additional Definitions.
|
|
24
|
+
|
|
25
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
26
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
27
|
+
General Public License.
|
|
28
|
+
|
|
29
|
+
"The Library" refers to a covered work governed by this License,
|
|
30
|
+
other than an Application or a Combined Work as defined below.
|
|
31
|
+
|
|
32
|
+
An "Application" is any work that makes use of an interface provided
|
|
33
|
+
by the Library, but which is not otherwise based on the Library.
|
|
34
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
35
|
+
of using an interface provided by the Library.
|
|
36
|
+
|
|
37
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
38
|
+
Application with the Library. The particular version of the Library
|
|
39
|
+
with which the Combined Work was made is also called the "Linked
|
|
40
|
+
Version".
|
|
41
|
+
|
|
42
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
43
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
44
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
45
|
+
based on the Application, and not on the Linked Version.
|
|
46
|
+
|
|
47
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
48
|
+
object code and/or source code for the Application, including any data
|
|
49
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
50
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
51
|
+
|
|
52
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
53
|
+
|
|
54
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
55
|
+
without being bound by section 3 of the GNU GPL.
|
|
56
|
+
|
|
57
|
+
2. Conveying Modified Versions.
|
|
58
|
+
|
|
59
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
60
|
+
facility refers to a function or data to be supplied by an Application
|
|
61
|
+
that uses the facility (other than as an argument passed when the
|
|
62
|
+
facility is invoked), then you may convey a copy of the modified
|
|
63
|
+
version:
|
|
64
|
+
|
|
65
|
+
a) under this License, provided that you make a good faith effort to
|
|
66
|
+
ensure that, in the event an Application does not supply the
|
|
67
|
+
function or data, the facility still operates, and performs
|
|
68
|
+
whatever part of its purpose remains meaningful, or
|
|
69
|
+
|
|
70
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
71
|
+
this License applicable to that copy.
|
|
72
|
+
|
|
73
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
74
|
+
|
|
75
|
+
The object code form of an Application may incorporate material from
|
|
76
|
+
a header file that is part of the Library. You may convey such object
|
|
77
|
+
code under terms of your choice, provided that, if the incorporated
|
|
78
|
+
material is not limited to numerical parameters, data structure
|
|
79
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
80
|
+
(ten or fewer lines in length), you do both of the following:
|
|
81
|
+
|
|
82
|
+
a) Give prominent notice with each copy of the object code that the
|
|
83
|
+
Library is used in it and that the Library and its use are
|
|
84
|
+
covered by this License.
|
|
85
|
+
|
|
86
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
87
|
+
document.
|
|
88
|
+
|
|
89
|
+
4. Combined Works.
|
|
90
|
+
|
|
91
|
+
You may convey a Combined Work under terms of your choice that,
|
|
92
|
+
taken together, effectively do not restrict modification of the
|
|
93
|
+
portions of the Library contained in the Combined Work and reverse
|
|
94
|
+
engineering for debugging such modifications, if you also do each of
|
|
95
|
+
the following:
|
|
96
|
+
|
|
97
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
98
|
+
the Library is used in it and that the Library and its use are
|
|
99
|
+
covered by this License.
|
|
100
|
+
|
|
101
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
102
|
+
document.
|
|
103
|
+
|
|
104
|
+
c) For a Combined Work that displays copyright notices during
|
|
105
|
+
execution, include the copyright notice for the Library among
|
|
106
|
+
these notices, as well as a reference directing the user to the
|
|
107
|
+
copies of the GNU GPL and this license document.
|
|
108
|
+
|
|
109
|
+
d) Do one of the following:
|
|
110
|
+
|
|
111
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
112
|
+
License, and the Corresponding Application Code in a form
|
|
113
|
+
suitable for, and under terms that permit, the user to
|
|
114
|
+
recombine or relink the Application with a modified version of
|
|
115
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
116
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
117
|
+
Corresponding Source.
|
|
118
|
+
|
|
119
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
120
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
121
|
+
a copy of the Library already present on the user's computer
|
|
122
|
+
system, and (b) will operate properly with a modified version
|
|
123
|
+
of the Library that is interface-compatible with the Linked
|
|
124
|
+
Version.
|
|
125
|
+
|
|
126
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
127
|
+
be required to provide such information under section 6 of the
|
|
128
|
+
GNU GPL, and only to the extent that such information is
|
|
129
|
+
necessary to install and execute a modified version of the
|
|
130
|
+
Combined Work produced by recombining or relinking the
|
|
131
|
+
Application with a modified version of the Linked Version. (If
|
|
132
|
+
you use option 4d0, the Installation Information must accompany
|
|
133
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
134
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
135
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
136
|
+
for conveying Corresponding Source.)
|
|
137
|
+
|
|
138
|
+
5. Combined Libraries.
|
|
139
|
+
|
|
140
|
+
You may place library facilities that are a work based on the
|
|
141
|
+
Library side by side in a single library together with other library
|
|
142
|
+
facilities that are not Applications and are not covered by this
|
|
143
|
+
License, and convey such a combined library under terms of your
|
|
144
|
+
choice, if you do both of the following:
|
|
145
|
+
|
|
146
|
+
a) Accompany the combined library with a copy of the same work based
|
|
147
|
+
on the Library, uncombined with any other library facilities,
|
|
148
|
+
conveyed under the terms of this License.
|
|
149
|
+
|
|
150
|
+
b) Give prominent notice with the combined library that part of it
|
|
151
|
+
is a work based on the Library, and explaining where to find the
|
|
152
|
+
accompanying uncombined form of the same work.
|
|
153
|
+
|
|
154
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
155
|
+
|
|
156
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
157
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
158
|
+
versions will be similar in spirit to the present version, but may
|
|
159
|
+
differ in detail to address new problems or concerns.
|
|
160
|
+
|
|
161
|
+
Each version is given a distinguishing version number. If the
|
|
162
|
+
Library as you received it specifies that a certain numbered version
|
|
163
|
+
of the GNU Lesser General Public License "or any later version"
|
|
164
|
+
applies to it, you have the option of following the terms and
|
|
165
|
+
conditions either of that published version or of any later version
|
|
166
|
+
published by the Free Software Foundation. If the Library as you
|
|
167
|
+
received it does not specify a version number of the GNU Lesser
|
|
168
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
169
|
+
General Public License ever published by the Free Software Foundation.
|
|
170
|
+
|
|
171
|
+
If the Library as you received it specifies that a proxy can decide
|
|
172
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
173
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
174
|
+
permanent authorization for you to choose that version for the
|
|
175
|
+
Library.
|
|
176
|
+
License-File: LICENSE
|
|
177
|
+
License-File: NOTICE
|
|
178
|
+
Keywords: anti-bot,browser-automation,captcha,captcha-solver,computer-vision,geetest,ocr,playwright,qwen,recaptcha,scraping,tencent-captcha,turnstile,vllm,yidun
|
|
179
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
180
|
+
Classifier: Intended Audience :: Developers
|
|
181
|
+
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
|
|
182
|
+
Classifier: Operating System :: OS Independent
|
|
183
|
+
Classifier: Programming Language :: Python :: 3
|
|
184
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
185
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
186
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
187
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
|
|
188
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
189
|
+
Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
190
|
+
Classifier: Topic :: Software Development :: Testing
|
|
191
|
+
Classifier: Typing :: Typed
|
|
192
|
+
Requires-Python: >=3.11
|
|
193
|
+
Requires-Dist: av==18.1.0
|
|
194
|
+
Requires-Dist: cursory==2.1.0
|
|
195
|
+
Requires-Dist: numpy==2.3.5
|
|
196
|
+
Requires-Dist: onnxruntime==1.31.1
|
|
197
|
+
Requires-Dist: pillow==13.0.0
|
|
198
|
+
Requires-Dist: pydantic==2.13.5
|
|
199
|
+
Requires-Dist: python-dotenv==1.2.3
|
|
200
|
+
Requires-Dist: requests==2.34.2
|
|
201
|
+
Requires-Dist: scipy==1.17.1
|
|
202
|
+
Provides-Extra: dev
|
|
203
|
+
Requires-Dist: mypy==2.3.1; extra == 'dev'
|
|
204
|
+
Requires-Dist: pytest-cov==7.1.0; extra == 'dev'
|
|
205
|
+
Requires-Dist: pytest==9.1.1; extra == 'dev'
|
|
206
|
+
Requires-Dist: ruff==0.16.6; extra == 'dev'
|
|
207
|
+
Provides-Extra: serve
|
|
208
|
+
Requires-Dist: accelerate==1.15.0; extra == 'serve'
|
|
209
|
+
Requires-Dist: huggingface-hub==1.30.0; extra == 'serve'
|
|
210
|
+
Requires-Dist: torch==2.13.0; extra == 'serve'
|
|
211
|
+
Requires-Dist: transformers==5.17.0; extra == 'serve'
|
|
212
|
+
Requires-Dist: vllm==0.29.0; extra == 'serve'
|
|
213
|
+
Description-Content-Type: text/markdown
|
|
214
|
+
|
|
215
|
+
<p align="center">
|
|
216
|
+
<img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/logo-card.png" alt="CaptchaKraken" width="128" height="128">
|
|
217
|
+
</p>
|
|
218
|
+
|
|
219
|
+
<h1 align="center">captchakraken</h1>
|
|
220
|
+
|
|
221
|
+
<p align="center">
|
|
222
|
+
<b>A captcha solver for browser automation.</b><br>
|
|
223
|
+
The Python engine and CLI behind <a href="https://github.com/CaptchaKraken/CaptchaKraken">CaptchaKraken</a>.
|
|
224
|
+
</p>
|
|
225
|
+
|
|
226
|
+
CPU element detection plus a fine-tuned **Qwen3.5-9B** vision model. Give it a
|
|
227
|
+
screenshot of a captcha and it returns the plan to solve it — which tiles to
|
|
228
|
+
select, where to click, what to drag, how far to slide, or what text to type.
|
|
229
|
+
Ships the `captchakraken` command.
|
|
230
|
+
|
|
231
|
+
Run the model on **your own hardware**, or point it at the **hosted API** and run
|
|
232
|
+
nothing at all.
|
|
233
|
+
|
|
234
|
+
> For demo videos, accuracy numbers, the browser driver, and the full
|
|
235
|
+
> self-hosting guide, see the main repo
|
|
236
|
+
> **[CaptchaKraken](https://github.com/CaptchaKraken/CaptchaKraken)**.
|
|
237
|
+
|
|
238
|
+
## Watch it work
|
|
239
|
+
|
|
240
|
+
<p align="center">
|
|
241
|
+
<img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/recaptcha_4x4.webp" width="260"
|
|
242
|
+
alt="A live reCAPTCHA 4×4 tile grid challenge being solved end to end">
|
|
243
|
+
<img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/geetest_slide.webp" width="260"
|
|
244
|
+
alt="A live GeeTest slide jigsaw challenge being solved end to end">
|
|
245
|
+
</p>
|
|
246
|
+
|
|
247
|
+
reCAPTCHA 4×4 tile grid 9/10 in 8.7s · GeeTest slide jigsaw 10/10 in 7.6s — median of the solved attempts, measured 2026-08-19 on **captcha-v12**
|
|
248
|
+
against each vendor's own public demo page. Counts rather than percentages
|
|
249
|
+
because ten attempts is not a percentage. Idle time is cut from the clips, so
|
|
250
|
+
they run shorter than the solves they show.
|
|
251
|
+
|
|
252
|
+
**More puzzle types**, as video and with the full method, at
|
|
253
|
+
[captchakraken.com](https://captchakraken.com) and in the
|
|
254
|
+
[main repo](https://github.com/CaptchaKraken/CaptchaKraken#watch-it-work).
|
|
255
|
+
|
|
256
|
+
## What it solves
|
|
257
|
+
|
|
258
|
+
| Vendor | Puzzles |
|
|
259
|
+
|---|---|
|
|
260
|
+
| **reCAPTCHA** | 3×3 and 4×4 image grids, including the dynamic re-deal |
|
|
261
|
+
| **GeeTest** v3 + v4 | Slide, icon, nine, svg, gobang, iconcrush |
|
|
262
|
+
| **NetEase Yidun** | Jigsaw, picture-click, icon-click |
|
|
263
|
+
| **Tencent, Lemin, Prosopo** | Slide, cropped-image and grid flows |
|
|
264
|
+
| **BotDetect, MTCaptcha, Yandex** | Distorted text — read and typed, not clicked |
|
|
265
|
+
| **Cloudflare Turnstile** | Via the checkbox flow (free on the hosted API) |
|
|
266
|
+
|
|
267
|
+
**44 puzzle types**, driven end to end in CI against generated fixtures on both
|
|
268
|
+
the TypeScript and Python ports. Animated challenges are recorded, sliced into
|
|
269
|
+
keyframes and answered with the frame the action belongs to.
|
|
270
|
+
|
|
271
|
+
## Install
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
pip install captchakraken # client: CPU element detection + vLLM HTTP planner
|
|
275
|
+
pip install "captchakraken[serve]" # + the serving stack (vLLM/torch) to self-host
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
The base install is lightweight — everything you need to solve captchas against
|
|
279
|
+
a vLLM server (local or remote). The `[serve]` extra pulls the heavy stack only
|
|
280
|
+
if you want to run the model yourself. The one-command
|
|
281
|
+
[`setup.sh`](https://github.com/CaptchaKraken/CaptchaKraken) installs `[serve]`,
|
|
282
|
+
downloads the weights, and writes an env file for you.
|
|
283
|
+
|
|
284
|
+
## No GPU? Use the hosted API
|
|
285
|
+
|
|
286
|
+
Point the client at `https://api.captchakraken.com/v1` and run no model at all.
|
|
287
|
+
Sign in at [captchakraken.com/signin](https://captchakraken.com/signin) for a
|
|
288
|
+
`ck_live_…` key, or let the MCP server write one for you:
|
|
289
|
+
|
|
290
|
+
```bash
|
|
291
|
+
claude mcp add captchakraken -- npx -y captchakraken-mcp
|
|
292
|
+
# then call sign_in, then create_api_key
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
`create_api_key` writes the key and the endpoint to `~/.captchakraken/credentials`,
|
|
296
|
+
which the client reads on its own — **no environment variables needed**.
|
|
297
|
+
|
|
298
|
+
## Hands-off server
|
|
299
|
+
|
|
300
|
+
The vLLM server is managed for you. On your first solve, if the configured
|
|
301
|
+
endpoint is **local** and nothing is listening, a server is started
|
|
302
|
+
automatically and reused. Point `VLLM_BASE_URL` at a server you already run to
|
|
303
|
+
skip local management entirely.
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
captchakraken server start | stop | status | run
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
## Usage
|
|
310
|
+
|
|
311
|
+
```bash
|
|
312
|
+
# Solve an image/video: classify → find_grid → plan. Prints the click actions.
|
|
313
|
+
captchakraken path/to/captcha.png
|
|
314
|
+
captchakraken path/to/captcha.png --puzzle-source recaptcha
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
```python
|
|
318
|
+
from captchakraken import CaptchaSolver
|
|
319
|
+
|
|
320
|
+
solver = CaptchaSolver() # connects to / auto-starts a local vLLM
|
|
321
|
+
actions = solver.solve("captcha.png")
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
Element-detector tool subcommands (CPU only, no planner model): `find-grid`, `find-checkbox`,
|
|
325
|
+
`detect-selected`, `grid-cell-states`, and a persistent `serve` worker the browser driver polls.
|
|
326
|
+
|
|
327
|
+
## Configuration (model-agnostic)
|
|
328
|
+
|
|
329
|
+
Everything model-specific lives in `captchakraken.config` and is env-overridable
|
|
330
|
+
— the solver never hard-codes a model.
|
|
331
|
+
|
|
332
|
+
| Variable | Meaning | Default |
|
|
333
|
+
|---|---|---|
|
|
334
|
+
| `VLLM_BASE_URL` | Inference endpoint | `~/.captchakraken/credentials`, else `http://localhost:8000/v1` |
|
|
335
|
+
| `CAPTCHA_KRAKEN_API_KEY` | Bearer token (`VLLM_API_KEY` also accepted) | `~/.captchakraken/credentials`, else `EMPTY` |
|
|
336
|
+
| `CAPTCHA_BASE_MODEL` | Base weights vLLM loads | `RedHatAI/Qwen3.5-9B-FP8-dynamic` |
|
|
337
|
+
| `CAPTCHA_LORA_ADAPTER` | Captcha adapter (HF id or path) | `CaptchaKraken/CaptchaKraken-Lora-v1.2` |
|
|
338
|
+
| `CAPTCHA_LORA_NAME` | Served adapter name the client requests | `captcha-v12` |
|
|
339
|
+
| `CAPTCHA_KRAKEN_AUTOSTART` | `0` disables local auto-start | `1` |
|
|
340
|
+
| `CAPTCHA_KRAKEN_DETECTOR` | A local element-detector `.onnx` to run instead of downloading the released one | the released weights, fetched once |
|
|
341
|
+
| `CAPTCHA_KRAKEN_DETECTOR_MODEL` | Which released detector runs: `lite` (MobileNetV3, about 100 ms a board on one vCPU), `standard` (ResNet-18), or `auto`; overrides `detector` in `captchakraken.config.json` | the config's `detector`, shipped as `auto`: `lite` on two usable CPUs or fewer (a container's CPU quota included), else one board is timed and `standard` runs when it fits in 200 ms |
|
|
342
|
+
| `HF_TOKEN` | A Hugging Face token, sent only when downloading the detector weights from a private copy of their repo | unset: the download sends no credential |
|
|
343
|
+
| `CAPTCHA_HUMANIZATION` | How gestures are performed: `mouse`, `mobile` or `none` | `mouse` |
|
|
344
|
+
|
|
345
|
+
**How it moves** is a choice of input device, not a realism dial. `mobile`
|
|
346
|
+
dispatches real touch events with finger kinematics and never touches
|
|
347
|
+
`page.mouse`; `none` goes straight to the DOM effect. Set it in code (which wins
|
|
348
|
+
over the env var, because the right mode is a property of the page you are
|
|
349
|
+
driving), and pass your own object to override ours entirely:
|
|
350
|
+
|
|
351
|
+
```python
|
|
352
|
+
from captchakraken import PageSolver
|
|
353
|
+
from captchakraken.page_solver import PageSolverConfig
|
|
354
|
+
|
|
355
|
+
PageSolver(config=PageSolverConfig(humanization="mobile"))
|
|
356
|
+
PageSolver(config=PageSolverConfig(humanization="none"))
|
|
357
|
+
PageSolver(config=PageSolverConfig(humanizer=my_own))
|
|
358
|
+
|
|
359
|
+
# A real handset over Appium / Selenium — W3C touch pointer actions.
|
|
360
|
+
PageSolver(config=PageSolverConfig(
|
|
361
|
+
humanization="mobile",
|
|
362
|
+
touch_driver=driver,
|
|
363
|
+
touch_transform={"scale": 3.0, "origin": (0, 132)}, # CSS px -> screen px
|
|
364
|
+
))
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
## License
|
|
368
|
+
|
|
369
|
+
**LGPL-3.0-only** — see [LICENSE](./LICENSE). Use, modify and redistribute it,
|
|
370
|
+
including in commercial and hosted services. If you distribute a modified
|
|
371
|
+
version, keep the licence and copyright notices and make your changes available
|
|
372
|
+
under LGPLv3.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
The Python engine and CLI behind <a href="https://github.com/CaptchaKraken/CaptchaKraken">CaptchaKraken</a>.
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
CPU element detection plus a fine-tuned **Qwen3.5-9B** vision model. Give it a
|
|
13
13
|
screenshot of a captcha and it returns the plan to solve it — which tiles to
|
|
14
14
|
select, where to click, what to drag, how far to slide, or what text to type.
|
|
15
15
|
Ships the `captchakraken` command.
|
|
@@ -57,7 +57,7 @@ keyframes and answered with the frame the action belongs to.
|
|
|
57
57
|
## Install
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
pip install captchakraken # client:
|
|
60
|
+
pip install captchakraken # client: CPU element detection + vLLM HTTP planner
|
|
61
61
|
pip install "captchakraken[serve]" # + the serving stack (vLLM/torch) to self-host
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -107,7 +107,7 @@ solver = CaptchaSolver() # connects to / auto-starts a local vLLM
|
|
|
107
107
|
actions = solver.solve("captcha.png")
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
Element-detector tool subcommands (CPU only, no planner model): `find-grid`, `find-checkbox`,
|
|
111
111
|
`detect-selected`, `grid-cell-states`, and a persistent `serve` worker the browser driver polls.
|
|
112
112
|
|
|
113
113
|
## Configuration (model-agnostic)
|
|
@@ -123,6 +123,9 @@ Everything model-specific lives in `captchakraken.config` and is env-overridable
|
|
|
123
123
|
| `CAPTCHA_LORA_ADAPTER` | Captcha adapter (HF id or path) | `CaptchaKraken/CaptchaKraken-Lora-v1.2` |
|
|
124
124
|
| `CAPTCHA_LORA_NAME` | Served adapter name the client requests | `captcha-v12` |
|
|
125
125
|
| `CAPTCHA_KRAKEN_AUTOSTART` | `0` disables local auto-start | `1` |
|
|
126
|
+
| `CAPTCHA_KRAKEN_DETECTOR` | A local element-detector `.onnx` to run instead of downloading the released one | the released weights, fetched once |
|
|
127
|
+
| `CAPTCHA_KRAKEN_DETECTOR_MODEL` | Which released detector runs: `lite` (MobileNetV3, about 100 ms a board on one vCPU), `standard` (ResNet-18), or `auto`; overrides `detector` in `captchakraken.config.json` | the config's `detector`, shipped as `auto`: `lite` on two usable CPUs or fewer (a container's CPU quota included), else one board is timed and `standard` runs when it fits in 200 ms |
|
|
128
|
+
| `HF_TOKEN` | A Hugging Face token, sent only when downloading the detector weights from a private copy of their repo | unset: the download sends no credential |
|
|
126
129
|
| `CAPTCHA_HUMANIZATION` | How gestures are performed: `mouse`, `mobile` or `none` | `mouse` |
|
|
127
130
|
|
|
128
131
|
**How it moves** is a choice of input device, not a realism dial. `mobile`
|
|
@@ -149,9 +152,7 @@ PageSolver(config=PageSolverConfig(
|
|
|
149
152
|
|
|
150
153
|
## License
|
|
151
154
|
|
|
152
|
-
**
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
a stealth/antidetect browser you distribute** — using it with one is fine. Those
|
|
157
|
-
three are licensable, not categorically refused: open an issue to ask.
|
|
155
|
+
**LGPL-3.0-only** — see [LICENSE](./LICENSE). Use, modify and redistribute it,
|
|
156
|
+
including in commercial and hosted services. If you distribute a modified
|
|
157
|
+
version, keep the licence and copyright notices and make your changes available
|
|
158
|
+
under LGPLv3.
|