
    fiH                     ~    d Z ddlZddlmZ ddlZddlZdej        fdZe	dk    r e            Z
 ee
           dS dS )u   
Date: 2025/8/4 14:00
Desc: 中证指数网站-指数列表
网站：https://www.csindex.com.cn/#/indices/family/list?index_series=1
    N)BytesIOreturnc                     t          j        dt          d           d} ddi}ddd	d
dddddddddddgdd
d}t          j        | ||          }t          j        t          |j                            }t          j	        |d         dd          j
        j        |d<   t          j	        |d         dd          j
        j        |d<   |d                             t                    j                            d          |d<   |S )u   
    中证指数网站-指数列表
    https://www.csindex.com.cn/#/indices/family/list?index_series=1
    Note: 但是不知道数据更新时间
    :return: 最新指数的列表,
    :rtype: pandas.DataFrame
    ignorez"Workbook contains no default style)categorymessagez?https://www.csindex.com.cn/csindex-home/exportExcel/indexAll/CHzContent-Typezapplication/json;charset=UTF-8nullN)	sortField	sortOrder   
   )pageNumpageSize1)
ifCustomized	ifTrackedifWeightCappedindexCompliancehotSpotindexClassifycurrencyregionindexSeries	undefined)sorterpagerindexFilter)jsonheadersu   基日z%Y-%m-%dcoerce)formaterrorsu   发布时间u   指数代码   )warningsfilterwarningsUserWarningrequestspostpd
read_excelr   contentto_datetimedtdateastypestrzfill)urlr   	playloadsrtemp_dfs        F/usr/local/lib/python3.11/dist-packages/akshare/index/index_csindex.pyindex_csindex_allr7      sQ    ;0T    LC 	8G !'T::B// "#!5
 
 I  	c	7;;;AmGAI..//G*X   H !n
8   N &n5<<SAAEKKANNGNN    __main__)__doc__r$   ior   pandasr)   r'   	DataFramer7   __name__index_csindex_all_dfprint r8   r6   <module>rB      s                *2< * * * *Z z,,..	E
 r8   