Class: Scrapio::Resources::Fetch
- Inherits:
-
Object
- Object
- Scrapio::Resources::Fetch
- Defined in:
- lib/scrapio/resources/fetch.rb
Instance Method Summary collapse
- #fetch(url:, render_js: nil, device: nil, session: nil, output: nil, extract: nil, actions: nil, timeout: nil, proxy: nil, country: nil) ⇒ Object
-
#initialize(http) ⇒ Fetch
constructor
A new instance of Fetch.
Constructor Details
#initialize(http) ⇒ Fetch
Returns a new instance of Fetch.
4 |
# File 'lib/scrapio/resources/fetch.rb', line 4 def initialize(http) = @http = http |
Instance Method Details
#fetch(url:, render_js: nil, device: nil, session: nil, output: nil, extract: nil, actions: nil, timeout: nil, proxy: nil, country: nil) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/scrapio/resources/fetch.rb', line 6 def fetch(url:, render_js: nil, device: nil, session: nil, output: nil, extract: nil, actions: nil, timeout: nil, proxy: nil, country: nil) @http.post("/v1/fetch", { url: url, render_js: render_js, device: device, session: session, output: output, extract: extract, actions: actions, timeout: timeout, proxy: proxy, country: country, }) end |