lib/outscraper.rb in outscraper-0.1.4 vs lib/outscraper.rb in outscraper-0.2.0
- old
+ new
@@ -8,10 +8,10 @@
class Client
include HTTParty
base_uri 'https://api.app.outscraper.com'
def initialize(api_key)
- self.class.headers 'X-API-KEY' => api_key
+ self.class.headers 'X-API-KEY' => api_key, 'Accept-Encoding' => 'utf-8'
end
def google_search(query, pages_per_query: 1, uule: '', language: 'en', region: nil)
response = self.class.get("/google-search-v3", 'query': {
query: query,