weboob.capabilities.pricecomparison

class weboob.capabilities.pricecomparison.Shop(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

A shop where the price is.
Variables:
  • name – (unicode) Name of shop
  • location – (unicode) Location of the shop
  • info – (unicode) Information about the shop
class weboob.capabilities.pricecomparison.Price(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

Price.
Variables:
  • date – (date, datetime) Date when this price has been published
  • cost – (Decimal) Cost of the product in this shop
  • currency – (unicode) Currency of the price
  • message – (unicode) Message related to this price
  • shop – (Shop) Shop information
  • product – (Product) Product
class weboob.capabilities.pricecomparison.Product(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

A product.
Variables:name – (unicode) Name of product
class weboob.capabilities.pricecomparison.CapPriceComparison

Bases: weboob.capabilities.base.Capability

Capability for price comparison websites.

get_price(id)

Get a price from an ID

Parameters:id (str) – ID of price
Return type:Price
iter_prices(products)

Iter prices for a product.

Parameters:product (Product) – product to search
Return type:iter[Price]
search_products(pattern=None)

Search products from a pattern.

Parameters:pattern (str) – pattern to search
Return type:iter[Product]