luqmaan / PriceChecker.py

A web server + scraper that notifies you when the price of products change.
3 stars 1 forks source link

Add Support for Multiple CSS Selectors #12

Open luqmaan opened 11 years ago

luqmaan commented 11 years ago

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?