Class: Scrapio::Resources::Walmart
- Inherits:
-
Object
- Object
- Scrapio::Resources::Walmart
- Defined in:
- lib/scrapio/resources/walmart.rb
Instance Method Summary collapse
-
#get_product(product_id, country: nil) ⇒ Object
deprecated
Deprecated.
GET /v1/walmart/product is temporarily disabled server-side as of 2026-07-11 (frequent PerimeterX-related blocks on individual Walmart product pages) and will 404 until it's re-enabled.
searchis unaffected. See specs/product/walmart-api.md in the main repo. -
#initialize(http) ⇒ Walmart
constructor
A new instance of Walmart.
- #search(query, country: nil, page: nil) ⇒ Object
Constructor Details
#initialize(http) ⇒ Walmart
Returns a new instance of Walmart.
4 |
# File 'lib/scrapio/resources/walmart.rb', line 4 def initialize(http) = @http = http |
Instance Method Details
#get_product(product_id, country: nil) ⇒ Object
Deprecated.
GET /v1/walmart/product is temporarily disabled
server-side as of 2026-07-11 (frequent PerimeterX-related blocks on
individual Walmart product pages) and will 404 until it's
re-enabled. search is unaffected. See
specs/product/walmart-api.md in the main repo.
11 12 13 |
# File 'lib/scrapio/resources/walmart.rb', line 11 def get_product(product_id, country: nil) @http.get("/v1/walmart/product", { product_id: product_id, country: country }) end |
#search(query, country: nil, page: nil) ⇒ Object
15 16 17 |
# File 'lib/scrapio/resources/walmart.rb', line 15 def search(query, country: nil, page: nil) @http.get("/v1/walmart/search", { query: query, country: country, page: page }) end |