+
    Ȝi                         R t ^ RIHt ^ RIt^ RIt^ RIHt R R ltRR R	 llt	]
R
8X  d9   ]	! RRR7      t]! ]4       ]	! RRR7      t]! ]4       ]	! RRR7      t]! ]4       R# R# )uc   
Date: 2024/4/5 20:20
Desc: 生意社-商品与期货-现期图
https://www.100ppi.com/sf/792.html
)StringION)BeautifulSoupc                $    V ^8  d   QhR\         /# )   return)dict)formats   "t/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/akshare/futures_derivative/futures_spot_sys.py__annotate__r
      s      T     c                    Rp \         P                  ! V 4      p\        VP                  RR7      pVP	                  RRR/R7      P                  R4      p\        \        V Uu. uF/  qDP	                  R	4      P                  4       P                  4       NK1  	  upV Uu. uF  qDP	                  R	4      R
,          NK  	  up4      4      pV# u upi u upi )u   
生意社-商品与期货-现期图: 品种和网址字典
https://www.100ppi.com/sf/792.html
:return: 品种和网址字典
:rtype: dict
z"https://www.100ppi.com/sf/792.htmllxml)featuresdivclassq8)nameattrsliahref)
requestsgetr   textfindfind_allr   zipget_textstrip)urlressoup	temp_itemitemname_url_dicts         r	   __get_sys_spot_futures_dictr%      s     /C
,,s
CF3D		uWdO	<EEdKI;DE94YYs^$$&,,.9E09:	YYs^F##	:	
M 	 F:s   "5C
 C   铜   市场价格c                P    V ^8  d   QhR\         R\         R\        P                  /# )r   symbol	indicatorr   )strpd	DataFrame)r   s   "r	   r
   r
   $   s%     - -S -S -bll -r   c                   \        4       pW ,          p\        P                  ! RV,           4      pVR8X  d   \        P                  ! \        VP                  4      ^ ^ R7      ^,          P                  p\        P                  ! VR,          RR7      VR&   \        P                  ! VR,          RR7      VR&   \        P                  ! VR,          RR7      VR&   VP                  R	R
7       RVP                  n        VP                  RR/R	R7       V# VR8X  d   \        P                  ! \        VP                  4      ^ ^ R7      ^,          P                  pVR,          P                  P                  RR4      VR&   \        P                  ! VR,          RR7      VR&   VP                  R	R
7       RVP                  n        VP                  RR/R	R7       V# \        P                  ! \        VP                  4      ^ ^ R7      ^,          P                  p\        P                  ! VR,          RR7      VR&   VP                  R	R
7       RVP                  n        VP                  RR/R	R7       V# )u
  
生意社-商品与期货-现期图
https://www.100ppi.com/sf/792.html
:param symbol: 期货品种
:type symbol: str
:param indicator: 市场价格; choice of {"市场价格", "基差率", "主力基差"}
:type indicator: str
:return: pandas.DataFrame
:rtype: dict
zhttps://www.100ppi.comr'   )header	index_colu   现货价格coerce)errorsu   主力合约u   最近合约T)inplaceNindexu   日期)columnsr3   	   基差率%    主力基差)r%   r   r   r,   	read_htmlr   r   T
to_numericreset_indexr5   r   renamer+   replace)r)   r*   r$   r   rtable_df_onetable_df_twotable_df_threes   &&      r	   futures_spot_sysrD   $   s    01M

C-34AN"||HQVV$4Q!LQOQQ')}}((
^$ (*}}((
^$ (*}}((
^$ 	   .$(!Wh$7F	k	!||HQVV$4Q!LQOQQ$0$=$A$A$I$I#r$R[!$&MM,{2KT\$][!   .$(!Wh$7Fhqvv&6qANqQSS)+>*8*
~& 	""4"0&*#w&94Hr   __main__)r)   r*   r6   r9   )r&   r'   )__doc__ior   pandasr,   r   bs4r   r%   rD   __name__futures_spot_sys_dfprint r   r	   <module>rN      st       (-` z*%>R	
*%;O	
*%>R	
 r   