Class: CompareSupermarkets::ColesScraper
- Defined in:
- lib/compare_supermarkets/scraper.rb
Instance Attribute Summary
Attributes inherited from Scraper
Instance Method Summary collapse
-
#initialize(search_term) ⇒ ColesScraper
constructor
A new instance of ColesScraper.
Methods inherited from Scraper
#handle_waiting, #search_browser, search_supermarkets
Constructor Details
#initialize(search_term) ⇒ ColesScraper
Returns a new instance of ColesScraper.
47 48 49 50 51 52 53 54 |
# File 'lib/compare_supermarkets/scraper.rb', line 47 def initialize(search_term) @supermarket = 'Coles' @search = "https://shop.coles.com.au/a/national/everything/search/" @search_term = search_term @class_name = "products" @all_products = ".product" @check = ".product-name" end |