Class: CompareSupermarkets::WoolworthsScraper
- Defined in:
- lib/compare_supermarkets/scraper.rb
Instance Attribute Summary
Attributes inherited from Scraper
Instance Method Summary collapse
-
#initialize(search_term) ⇒ WoolworthsScraper
constructor
A new instance of WoolworthsScraper.
Methods inherited from Scraper
#handle_waiting, #search_browser, search_supermarkets
Constructor Details
#initialize(search_term) ⇒ WoolworthsScraper
Returns a new instance of WoolworthsScraper.
60 61 62 63 64 65 66 67 |
# File 'lib/compare_supermarkets/scraper.rb', line 60 def initialize(search_term) @supermarket = 'Woolworths' @search = "https://www.woolworths.com.au/shop/search/products?searchTerm=" @search_term = search_term @class_name = "layoutWrapper" @all_products = ".shelfProductTile-content" @check = ".shelfProductTile-descriptionLink" end |