def get_suspended():
 try:
  ref = (ct.SSEQ_CQ_REF_URL % (ct.P_TYPE['http'], ct.DOMAINS['sse']))
  clt = Client((rv.SUSPENDED_URL % (ct.P_TYPE['http'], ct.DOMAINS['sseq'], ct.PAGES['ssecq'], _random(5), _random())), ref=ref, cookie=rv.MAR_SH_COOKIESTR)
  lines = clt.gvalue()
  lines = (lines.decode('utf-8') if ct.PY3 else lines)
  lines = lines[19:(-1)]
  lines = json.loads(lines)
  df = pd.DataFrame(lines['result'], columns=rv.TERMINATED_T_COLS)
  df.columns = rv.TERMINATED_COLS
  return df
 except Exception as er:
  print str(er)

def get_suspended ( ) : try : ref = ( ct . SSEQ_CQ_REF_URL % ( ct . P_TYPE [ 'http' ] , ct . DOMAINS [ 'sse' ] ) ) clt = Client ( ( rv . SUSPENDED_URL % ( ct . P_TYPE [ 'http' ] , ct . DOMAINS [ 'sseq' ] , ct . PAGES [ 'ssecq' ] , _random ( 5 ) , _random ( ) ) ) , ref = ref , cookie = rv . MAR_SH_COOKIESTR ) lines = clt . gvalue ( ) lines = ( lines . decode ( 'utf-8' ) if ct . PY3 else lines ) lines = lines [ 19 : ( - 1 ) ] lines = json . loads ( lines ) df = pd . DataFrame ( lines [ 'result' ] , columns = rv . TERMINATED_T_COLS ) df . columns = rv . TERMINATED_COLS return df except Exception as er : print str ( er )
return dataframe code :股票代码 name :股票名称 odate:上市日期 tdate:终止上市日期 .