mns-common 1.3.8.2__py3-none-any.whl → 1.3.8.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mns-common might be problematic. Click here for more details.

@@ -8,7 +8,7 @@ sys.path.append(project_path)
8
8
  from loguru import logger
9
9
  import pywencai
10
10
  import mns_common.utils.data_frame_util as data_frame_util
11
-
11
+ import mns_common.component.cookie.cookie_info_service as cookie_info_service
12
12
  '''
13
13
 
14
14
  # https://github.com/zsrl/pywencai 文档
@@ -27,7 +27,8 @@ import mns_common.utils.data_frame_util as data_frame_util
27
27
 
28
28
 
29
29
  def wen_cai_api(question, q_type):
30
- response = pywencai.get(question=question, loop=True, query_type=q_type)
30
+ cookie = cookie_info_service.get_ths_cookie()
31
+ response = pywencai.get(question=question, loop=True, query_type=q_type, cookie=cookie)
31
32
  return response
32
33
 
33
34
 
@@ -114,8 +115,10 @@ def get_concept_detail_by_wen_cai(concept_name):
114
115
 
115
116
 
116
117
  if __name__ == '__main__':
117
- concept_detail_df = get_concept_detail_by_wen_cai("光纤概念")
118
- concept_df = get_concept_index_by_wen_cai()
119
- print(concept_df)
120
- industry_index = get_industry_index_by_wen_cai()
121
- print(industry_index)
118
+ zt_df = wen_cai_api('涨停', 'stock', )
119
+ print(zt_df)
120
+ # concept_detail_df = get_concept_detail_by_wen_cai("光纤概念")
121
+ # concept_df = get_concept_index_by_wen_cai()
122
+ # print(concept_df)
123
+ # industry_index = get_industry_index_by_wen_cai()
124
+ # print(industry_index)
@@ -50,14 +50,14 @@ ONE_MINUTE_SYNC_FAIL = 'one_minute_sync_fail'
50
50
  US_STOCK_DAILY_QFQ_K_LINE = 'us_stock_daily_qfq_k_line'
51
51
 
52
52
  # us stock 1分钟集合数据
53
- US_STOCK_MINUTE_K_LINE_BFQ_C = 'us_stock_one_minute_k_line_bfq'
53
+ US_STOCK_MINUTE_K_LINE_BFQ = 'us_stock_one_minute_k_line_bfq'
54
54
 
55
55
  # us etf 1分钟集合数据
56
- US_ETF_MINUTE_K_LINE_BFQ_C = 'us_etf_one_minute_k_line_bfq'
56
+ US_ETF_MINUTE_K_LINE_BFQ = 'us_etf_one_minute_k_line_bfq'
57
57
 
58
58
  # hk stock daily_k_line
59
59
  HK_STOCK_DAILY_QFQ_K_LINE = 'hk_stock_daily_qfq_k_line'
60
60
  # hk stock 1分钟集合数据
61
- HK_STOCK_MINUTE_K_LINE_BFQ_C = 'hk_stock_one_minute_k_line_bfq'
61
+ HK_STOCK_MINUTE_K_LINE_BFQ = 'hk_stock_one_minute_k_line_bfq'
62
62
  # hk etf 1分钟集合数据
63
- HK_STOCK_MINUTE_K_LINE_BFQ_C = 'hk_etf_one_minute_k_line_bfq'
63
+ HK_STOCK_MINUTE_K_LINE_BFQ = 'hk_etf_one_minute_k_line_bfq'
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-common
3
- Version: 1.3.8.2
3
+ Version: 1.3.8.4
4
4
 
@@ -64,7 +64,7 @@ mns_common/api/ths/concept/web/ths_concept_index_web.py,sha256=zULAWpnmpnwc2MOZt
64
64
  mns_common/api/ths/self_choose/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
65
65
  mns_common/api/ths/self_choose/ths_self_choose_api.py,sha256=TkV4r8iRkgcm4OaclUTTJ19TNNiO0z_DbIFkc-G_wFc,6012
66
66
  mns_common/api/ths/wen_cai/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
67
- mns_common/api/ths/wen_cai/ths_wen_cai_api.py,sha256=TiDbKIB57ARrnGb70vSJ7-c7lodQqivwlC2IWs95xFw,4718
67
+ mns_common/api/ths/wen_cai/ths_wen_cai_api.py,sha256=zDwZyh60sHdJ_folWDVZmLD1mndKc40Ltc4JbL12HF4,4935
68
68
  mns_common/api/ths/zt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
69
69
  mns_common/api/ths/zt/ths_stock_zt_pool_api.py,sha256=NAfyOWWROVpCRlw3jcCxPLQMwR8m0jt9tfIZT7Jr1UE,10690
70
70
  mns_common/api/ths/zt/ths_stock_zt_pool_v2_api.py,sha256=eICTYaHJYp2ccsHkeDnkzpJGT63FzKtaICDjCWCdQOA,16282
@@ -133,7 +133,7 @@ mns_common/constant/__init__.py,sha256=xu36nA6MJTauswUWPfKIKH0E-lpOAHTw2TL5QI_6T
133
133
  mns_common/constant/black_list_classify_enum.py,sha256=I8U_DcltzYvlWjgn-TFLImgVgPuO0lxMnEJAQJBljdo,3995
134
134
  mns_common/constant/db_name_constant.py,sha256=uOwqzlLoTweqlwyAK4MkXB2fXi7-9JT5sxrvo_UI-Y8,4670
135
135
  mns_common/constant/east_money_stock_api.py,sha256=mW0b8sEgkf8WJtars2frOQYzsWgjIl4FDYEwcCcCSZY,7557
136
- mns_common/constant/extra_income_db_name.py,sha256=EdgSbKFQbkH4CbbXkUiOduez8rhOS5jIKRUH1GG-qLU,1750
136
+ mns_common/constant/extra_income_db_name.py,sha256=qRrodmzmgMvYJ1mxSsydSQPJHkPIRCuuHY3FnaD5lnY,1742
137
137
  mns_common/constant/price_enum.py,sha256=nhcPxk0AFdQAp8IsNr5EP9xURLqqJuSl6ljIzTp7Wyo,1093
138
138
  mns_common/constant/redis_msg_constant.py,sha256=fMtI_WbJ2IkMX4qGwvR5MkMO0NqU8XgUUZqQzHIRscU,501
139
139
  mns_common/constant/self_choose_constant.py,sha256=Xnzp9cn5x5_UdqF4gozSDErkzafnbCYBjDH8YpTEU84,777
@@ -150,7 +150,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
150
150
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
151
151
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
152
152
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
153
- mns_common-1.3.8.2.dist-info/METADATA,sha256=7PYW90lPi6kZcFl-shvYwxGzHfsSH5YbEW-GZhPogUc,61
154
- mns_common-1.3.8.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
155
- mns_common-1.3.8.2.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
156
- mns_common-1.3.8.2.dist-info/RECORD,,
153
+ mns_common-1.3.8.4.dist-info/METADATA,sha256=mxHdqZviINNPq13iWS0_ReV3BoHHeIDV4dDzxkgFAAk,61
154
+ mns_common-1.3.8.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
155
+ mns_common-1.3.8.4.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
156
+ mns_common-1.3.8.4.dist-info/RECORD,,