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

Update serpapi.py Support baidu list type answer_box #1

Merged
merged 1 commit into from
Jun 18, 2023

Conversation

Gavin-YYC
Copy link
Owner

@Gavin-YYC Gavin-YYC commented Jun 18, 2023

Support baidu list type answer_box

From this document, we can know that the answer_box attribute returned by the Baidu interface is a list, and the list contains only one Object, but an error will occur when the current code is executed.

So when answer_box is a list, we reset res["answer_box"] so that the code can execute successfully.

@Gavin-YYC Gavin-YYC merged commit f9c8646 into master Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant