Skip to content

Commit 0d56696

Browse files
committed
insert logo in the README
1 parent 6281569 commit 0d56696

File tree

2 files changed

+15
-44
lines changed

2 files changed

+15
-44
lines changed

README.md

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# SerpApi Ruby Library
1+
<div align="center">
2+
<h1 align="center">SerpApi Ruby Library</h1>
23

3-
[![serpapi-ruby](https://github.com/serpapi/serpapi-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/ci.yml)
4-
[![Gem Version](https://badge.fury.io/rb/serpapi.svg)](https://badge.fury.io/rb/serpapi)
5-
[![serpapi-ruby-alternative](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_alt.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_alt.yml)
6-
[![serpapi-ruby-sanity-1](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_1.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_1.yml)
7-
[![serpapi-ruby-sanity-2](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_2.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_2.yml)
4+
![serpapi ruby library logo](https://user-images.githubusercontent.com/78694043/235409962-7afe3a25-9272-4d56-9678-9972b771453b.png)
5+
6+
[![Gem Version](https://badge.fury.io/rb/serpapi.svg)](https://badge.fury.io/rb/serpapi) [![serpapi-ruby](https://github.com/serpapi/serpapi-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/ci.yml) [![serpapi-ruby-alternative](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_alt.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_alt.yml) [![serpapi-ruby-sanity-1](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_1.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_1.yml) [![serpapi-ruby-sanity-2](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_2.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_2.yml)
7+
</div>
88

99
Integrate search data into your Ruby application. This library is the official wrapper for SerpApi (https://serpapi.com).
1010

@@ -157,36 +157,6 @@ pp client.account
157157

158158
It prints your account information.
159159

160-
### Bulk Search API
161-
162-
If you have high volume of searches (e.g., >= 1 million) and they don't need to be live, you can use our Bulk Search API. You just have to use the `async` parameter:
163-
164-
```ruby
165-
client = SerpApi::Client.new api_key: 'secret_api_key', async: true
166-
167-
searches = [
168-
{ engine: "google", q: "coffee" },
169-
{ engine: "google", q: "tea" },
170-
{ engine: "google", q: "hot chocolate milk" },
171-
# ...
172-
]
173-
174-
# Submit async searches
175-
async_searches = searches.map do |search|
176-
async_search = client.search search
177-
async_search
178-
end
179-
180-
# Get an ETA using the last search scheduled time
181-
bulk_search_eta = async_search_results.last[:search_metadata][:scheduled_at]
182-
183-
# After the searches are done processing (i.e., `bulk_search_eta`)
184-
async_search_results = async_searches.map do |search|
185-
results = client.search_archive search[:id]
186-
results
187-
end
188-
```
189-
190160
## Basic example per search engine
191161

192162
### Search bing
@@ -437,9 +407,10 @@ require 'serpapi'
437407
client = SerpApi::Client.new(api_key: ENV['API_KEY'], engine: 'google_local_services')
438408
results = client.search({
439409
'q': 'Electrician',
440-
'place_id': 'ChIJOwg_06VPwokRYv534QaPC8g'
410+
'data_cid': 'ChIJOwg_06VPwokRYv534QaPC8g'
441411
})
442-
pp results
412+
pp results[:local_ads]
413+
# ENV['API_KEY'] captures the secret user API available from http://serpapi.com
443414

444415
```
445416

README.md.erb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ def snippet(format, path, demo = false)
1313
%Q(```#{format}\nrequire 'serpapi'\n#{buf}\n```\n\n * source code: [#{path}](https://github.com/serpapi/serpapi-ruby/blob/master/#{path}))
1414
end
1515
-%>
16-
# SerpApi Ruby Library
16+
<div align="center">
17+
<h1 align="center">SerpApi Ruby Library</h1>
1718

18-
[![serpapi-ruby](https://github.com/serpapi/serpapi-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/ci.yml)
19-
[![Gem Version](https://badge.fury.io/rb/serpapi.svg)](https://badge.fury.io/rb/serpapi)
20-
[![serpapi-ruby-alternative](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_alt.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_alt.yml)
21-
[![serpapi-ruby-sanity-1](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_1.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_1.yml)
22-
[![serpapi-ruby-sanity-2](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_2.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_2.yml)
19+
![serpapi ruby library logo](https://user-images.githubusercontent.com/78694043/235409962-7afe3a25-9272-4d56-9678-9972b771453b.png)
20+
21+
[![Gem Version](https://badge.fury.io/rb/serpapi.svg)](https://badge.fury.io/rb/serpapi) [![serpapi-ruby](https://github.com/serpapi/serpapi-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/ci.yml) [![serpapi-ruby-alternative](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_alt.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_alt.yml) [![serpapi-ruby-sanity-1](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_1.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_1.yml) [![serpapi-ruby-sanity-2](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_2.yml/badge.svg)](https://github.com/serpapi/serpapi-ruby/actions/workflows/sanity_2.yml)
22+
</div>
2323

2424
Integrate search data into your Ruby application. This library is the official wrapper for SerpApi (https://serpapi.com).
2525

0 commit comments

Comments
 (0)