SinaBlockRecorder

class zvt.recorders.sina.meta.sina_block_recorder.SinaBlockRecorder(force_update: bool = False, sleeping_time: int = 10)

Bases: Recorder

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

overwrite them to set up the data you want to record

data_schema

alias of Block

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