Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网页 keyword 搜索获取不到搜索结果 bugfix #151

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

sophyallen
Copy link

首先,感谢你来提交 PR!🎉🎉🎉

请你填写下面的信息,然后提交该请求。

你在该请求中做了些什么?

  • 修复 BaiduSpider().Search_web() 查询网页结果无法解析返回。

你的代码的缺点(可能出现的bug)

  • 网页搜索结果解析会跳过 <div class="result_op">的结果解析

对请求的详细描述

  • <div class="result_op”> 获取的是网页搜索结果可选,一般为新闻资讯的快照
  • <div class="result"> 表示网页搜索的命中结果

result_op 结果可以在 news 里获取,没必要在网页结果里解析

@sophyallen sophyallen changed the title 搜索结果获取div不对 网页 keyword 搜索获取不到搜索结果 bugfix Sep 15, 2022
@James4Ever0
Copy link

666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants