Skip to content

Commit bc031b2

Browse files
committed
feat: Implement VLM captcha solver and human-like slider trajectory
1 parent aee5dc2 commit bc031b2

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

example.env

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MQTT_TOPIC_PREFIX=95598
1212
# Application Settings
1313
JOB_START_TIME=07:00
1414
LOG_LEVEL=INFO
15-
RETRY_TIMES_LIMIT=15
15+
RETRY_TIMES_LIMIT=6
1616

1717
# Database Settings
1818
ENABLE_DATABASE_STORAGE=true
@@ -22,14 +22,14 @@ DB_NAME=95598.db
2222
DRIVER_IMPLICITY_WAIT_TIME=60
2323
LOGIN_EXPECTED_TIME=10
2424
RETRY_WAIT_TIME_OFFSET_UNIT=10
25-
SLIDER_OFFSET=5
25+
SLIDER_OFFSET=2
2626
CHROME_BINARY_PATH=
2727
CHROMEDRIVER_PATH=
28+
DATA_RETENTION_DAYS=7
29+
# IGNORE_USER_ID=1234567890,0987654321
2830

2931
# onnx or vlm
3032
CAPTCHA_SOLVER_TYPE=onnx
3133
VLM_API_KEY=
3234
VLM_BASE_URL=https://open.bigmodel.cn/api/paas/v4/
33-
VLM_MODEL=glm-4v-flash
34-
DATA_RETENTION_DAYS=7
35-
# IGNORE_USER_ID=1234567890,0987654321
35+
VLM_MODEL=glm-4v-flash

sgcc_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def perform_login(self, driver):
288288
final_distance = int(gap_pos * scale_factor)
289289

290290
# Apply manual offset
291-
slider_offset = int(os.getenv("SLIDER_OFFSET", 5))
291+
slider_offset = int(os.getenv("SLIDER_OFFSET", 2))
292292
final_distance += slider_offset
293293

294294
logging.info(f"Captcha: Gap={gap_pos}, Scale={scale_factor:.2f}, Offset={slider_offset}, FinalDist={final_distance}")

0 commit comments

Comments
 (0)