Class: Scrapio::Resources::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/scrapio/resources/search.rb

Overview

POST /v1/search -- a multi-provider search workflow (currently resolves through Google, requires a Pro plan or higher). Untyped request/response since the workflow orchestrator's payload is more flexible than a fixed schema.

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ Search

Returns a new instance of Search.



8
# File 'lib/scrapio/resources/search.rb', line 8

def initialize(http) = @http = http

Instance Method Details

#execute(request) ⇒ Object



10
11
12
# File 'lib/scrapio/resources/search.rb', line 10

def execute(request)
  @http.post("/v1/search", request)
end