Skip to content

Commit e9457bd

Browse files
authored
[Documentation] Fix an array of searches in the Bulk Search API example
1 parent 87e50b6 commit e9457bd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,13 @@ If you have high volume of searches (e.g., >= 1 million) and they don't need to
165165
client = SerpApi::Client.new api_key: 'secret_api_key', async: true
166166

167167
searches = [
168-
engine: "google", q: "coffee",
169-
engine: "google", q: "tea",
170-
engine: "google", q: "hot chocolate milk",
171-
...
168+
{ engine: "google", q: "coffee" },
169+
{ engine: "google", q: "tea" },
170+
{ engine: "google", q: "hot chocolate milk" },
171+
# ...
172172
]
173173

174+
# Submit async searches
174175
async_searches = searches.map do |search|
175176
async_search = client.search search
176177
async_search

0 commit comments

Comments
 (0)