woob.capabilities.pricecomparison

class woob.capabilities.pricecomparison.CapPriceComparison

Bases: woob.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]

class woob.capabilities.pricecomparison.Price(id='', url=NotLoaded, backend=None)

Bases: woob.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 – (str) Currency of the price

  • message – (str) Message related to this price

  • shop – (Shop) Shop information

  • product – (Product) Product

class woob.capabilities.pricecomparison.Product(id='', url=NotLoaded, backend=None)

Bases: woob.capabilities.base.BaseObject

A product.

Variables

name – (str) Name of product

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

Bases: woob.capabilities.base.BaseObject

A shop where the price is.

Variables
  • name – (str) Name of shop

  • location – (str) Location of the shop

  • info – (str) Information about the shop