Some sites have more than one way of presenting the price depending on the page. E.g. at Amazon the pages linked to from the homepage tend to have their prices in #price. Pages form search tend to have their prices in B.priceLarge.
One solution to this is to check all of the potential CSS selectors and then choose the one that has a price.
The Selector model (formerly Regex, I renamed it to make more sense) currently supports only one CSS selector. It needs to be modified.
The product_info method in scraper2 should be passed the selectors as a list of strings.
Some logic needs to be written to choose the intended price if multiple prices are found.
Some sites have more than one way of presenting the price depending on the page. E.g. at Amazon the pages linked to from the homepage tend to have their prices in #price. Pages form search tend to have their prices in B.priceLarge.
One solution to this is to check all of the potential CSS selectors and then choose the one that has a price.
Anybody want to do this?