Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion image_recognition_zhihu.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def bolting(k_low,k_hi,k3_confidence):
"input_text":input_text
}

# 提交过快会被拒绝,{"code":120005,"name":"ERR_VERIFY_CAPTCHA_TOO_QUICK"} ,假装思考5秒钟
# 提交过快会被拒绝,{"code":120005,"name":"ERR_VERIFY_CAPTCHA_TOO_QUICK"} ,防止ip短时间大量访问同一链接
time.sleep( 4 + random.randint(1,9)/10 )
try:
resp5 = sessiona.post('https://www.zhihu.com/api/v3/oauth/captcha?lang=cn',data,headers=headers)
Expand Down