ExchangeStockMetaRecorder¶
- class zvt.recorders.exchange.exchange_stock_meta_recorder.ExchangeStockMetaRecorder(force_update: bool = False, sleeping_time: int = 10)¶
Bases:
Recorder
- __init__(force_update: bool = False, sleeping_time: int = 10) None ¶
- provider: str = 'exchange'¶
overwrite them to set up the data you want to record
- original_page_url = 'http://www.sse.com.cn/assortment/stock/list/share/'¶
original page url
- 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
- state_schema¶
alias of
RecorderState
- url = None¶
request url
- session¶
using to do db operations