WBCountryRecorder¶
- class zvt.recorders.wb.wb_country_recorder.WBCountryRecorder(force_update: bool = False, sleeping_time: int = 10)¶
Bases:
Recorder- __init__(force_update: bool = False, sleeping_time: int = 10) None¶
- provider: str = 'wb'¶
overwrite them to set up the data you want to record
- 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