weboob.capabilities.dating

exception weboob.capabilities.dating.OptimizationNotFound

Bases: weboob.capabilities.base.UserError

Raised when an optimization is not found.

class weboob.capabilities.dating.Optimization(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

Optimization.

Variables:CONFIG – Configuration of optim can be made by weboob.tools.value.Value objects in this dict.
CONFIG = {}
get_config()

Get config of this optimization.

Return type:dict
is_running()

Know if the optimization is currently running.

Return type:bool
set_config(params)

Set config of this optimization.

Parameters:params (dict) – parameters
start()

Start optimization.

stop()

Stop optimization.

class weboob.capabilities.dating.Event(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

A dating event (for example a visite, a query received, etc.)
Variables:
  • date – (date, datetime) Date of event
  • contact – (Contact) Contact related to this event
  • type – (unicode) Type of event
  • message – (unicode) Message of the event
class weboob.capabilities.dating.CapDating

Bases: weboob.capabilities.base.Capability

Capability for dating websites.

add_optimization(name, optim)

Add an optimization.

Parameters:
  • name (str) – name of optimization
  • optim (Optimization) – optimization
get_optimization(optim)

Get an optimization from a name.

Parameters:optim (str) – name of optimization
Return type:Optimization
init_optimizations()

Initialization of optimizations.

iter_events()

Iter events.

Return type:iter[Event]
iter_new_contacts()

Iter new contacts.

Return type:iter[Contact]
iter_optimizations()

Iter optimizations.

Return type:iter[Optimization]