[FIX] Google搜索使用模糊匹配以避免无结果#19
Merged
brokermr810 merged 1 commit intobrokermr810:mainfrom Jan 27, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
由于 Google Custom Search 在使用精确匹配(带双引号)时,对于某些包含特殊字符的动态生成的查询词(如
"BTC/USDT Cryptocurrency")可能返回0结果。此修复移除了搜索关键词的强制双引号,改为模糊匹配,以提高搜索结果的覆盖率和鲁棒性。
已在本地进行验证,模糊匹配能有效返回相关新闻结果。