woob.capabilities.dating

class woob.capabilities.dating.CapDating

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

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

Bases: woob.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 – (str) Type of event

  • message – (str) Message of the event

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

Bases: woob.capabilities.base.BaseObject

Optimization.

Variables

CONFIG – Configuration of optim can be made by woob.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.

exception woob.capabilities.dating.OptimizationNotFound

Bases: woob.capabilities.base.UserError

Raised when an optimization is not found.