[Readme] Error in Batch Asynchronous Searches Example
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 50/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Open the README and locate the Batch Asynchronous Searches example. Update the Search Archive call as described, then run the example or its relevant documentation check to confirm it no longer raises KeyError: 'search_metadata'.
Written by the indexing model from the issue text.
Description
Currently, the example provided in the README for Batch Asynchronous Searches fails with KeyError: 'search_metadata'.
The reason for this is that the search object used to perform the initial searches is used again to call the Search Archive API without removing the previous parameters. This causes the Search Archive API to return a {'error': 'You are using query q parameter on our Search Archive API. To make a new search, use: https://serpapi.com/search.json?q=coffee'} response.
This is fixed by replacing search_archived = search.get_search_archive(search_id) with search_archived = GoogleSearch({}).get_search_archive(search_id).
We can correct this in the README to help prevent confusion for users attempting to follow the example.
- Dominant language
- Python
- Stars
- 756
- Forks
- 118
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from serpapi/google-search-results-python
-
Broken link Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
serpapi/google-search-results-python#70 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
serpapi/google-search-results-python#84 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
serpapi/google-search-results-python#76 · 1 comment ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
serpapi/google-search-results-python#72 · 1 comment · 1 reaction ·
All issues in serpapi/google-search-results-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100