Skip to content

Commit

Permalink
Date (#4412)
Browse files Browse the repository at this point in the history
* add version 1.12.20

* fix futures_inventory_99

* update date
  • Loading branch information
albertandking authored Jan 10, 2024
1 parent 459de2c commit eee0d97
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion akshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2632,9 +2632,10 @@
1.12.17 fix: fix option_current_em interface
1.12.18 fix: fix stock_board_industry_index_ths interface
1.12.19 fix: fix stock_hk_profit_forecast_et interface
1.12.20 fix: fix futures_inventory_99 interface
"""

__version__ = "1.12.19"
__version__ = "1.12.20"
__author__ = "AKFamily"

import sys
Expand Down
8 changes: 5 additions & 3 deletions akshare/futures/futures_inventory_99.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Date: 2022/7/5 14:22
Date: 2024/1/10 19:00
Desc: 99 期货网-大宗商品库存数据
http://www.99qh.com/d/store.aspx
"""
from io import StringIO

import pandas as pd
import requests
from bs4 import BeautifulSoup
Expand All @@ -16,7 +18,7 @@


def futures_inventory_99(
exchange: str = "大连商品交易所", symbol: str = "豆一"
exchange: str = "大连商品交易所", symbol: str = "豆一"
) -> pd.DataFrame:
"""
99 期货网-大宗商品库存数据
Expand Down Expand Up @@ -273,7 +275,7 @@ def futures_inventory_99(
headers=qh_headers,
cookies=cookie,
)
data_df = pd.read_html(res.text)[-1].T
data_df = pd.read_html(StringIO(res.text))[-1].T
data_df.columns = data_df.iloc[0, :]
data_df = data_df.iloc[1:, :]
data_df.reset_index(inplace=True, drop=True)
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@

## 更新说明详情

1.12.20 fix: fix futures_inventory_99 interface

1. 修复 futures_inventory_99 接口

1.12.19 fix: fix stock_hk_profit_forecast_et interface

1. 修复 stock_hk_profit_forecast_et 接口
Expand Down Expand Up @@ -3348,6 +3352,8 @@

## 版本更新说明

1.12.20 fix: fix futures_inventory_99 interface

1.12.19 fix: fix stock_hk_profit_forecast_et interface

1.12.18 fix: fix stock_board_industry_index_ths interface
Expand Down
2 changes: 1 addition & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
**风险提示:[AKShare](https://github.com/akfamily/akshare) 开源财经数据接口库所采集的数据皆来自公开的数据源,不涉及任何个人隐私数据和非公开数据。
同时本项目提供的数据接口及相关数据仅用于学术研究,任何个人、机构及团体使用本项目的数据接口及相关数据请注意商业风险。**

1. 本文档更新时间:**2024-01-09**
1. 本文档更新时间:**2024-01-10**
2. 如有 [AKShare](https://github.com/akfamily/akshare) 库、文档及数据的相关问题,请在 [AKShare Issues](https://github.com/akfamily/akshare/issues) 中提 Issues;
3. 欢迎关注 **数据科学实战** 微信公众号:<div><img src="https://jfds-1252952517.cos.ap-chengdu.myqcloud.com/akshare/readme/qrcode/ds.png"></div>;
4. 如果您的问题未能在文档中找到答案,您也可以加入 **AKShare-VIP QQ 群**: 为了提高问答质量,此群为收费群(一杯咖啡钱即可入群,赠送[《AKShare-初阶-使用教学》](https://zmj.xet.tech/s/wck86)视频课),可以添加 **AKShare-小助手** QQ:1254836886,由小助手邀请入群! ![](https://jfds-1252952517.cos.ap-chengdu.myqcloud.com/akshare/readme/qrcode/qr_code_1254836886.jpg)
Expand Down

0 comments on commit eee0d97

Please sign in to comment.