EMStockusRecorder

class zvt.recorders.em.meta.em_stockus_meta_recorder.EMStockusRecorder(force_update: bool = False, sleeping_time: int = 10)

Bases: Recorder

__init__(force_update: bool = False, sleeping_time: int = 10) None
provider: str = 'em'

overwrite them to set up the data you want to record

data_schema

alias of Stockus

clear_state_data(entity_id=None)

clear state of the entity

Parameters:

entity_id – entity id

decode_state(state: str)

decode state

Parameters:

state

Returns:

encode_state(state: object)

encode state

Parameters:

state

Returns:

name = None

name of the service, default name of class if not set manually

original_page_url = None

original page url

state_schema

alias of RecorderState

url = None

request url

session

using to do db operations