mns-common 1.5.0.4__py3-none-any.whl → 1.5.0.7__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.

@@ -0,0 +1,39 @@
1
+ import sys
2
+ import os
3
+
4
+ file_path = os.path.abspath(__file__)
5
+ end = file_path.index('mns') + 16
6
+ project_path = file_path[0:end]
7
+ sys.path.append(project_path)
8
+
9
+ import requests
10
+
11
+
12
+ def company_product_area_industry(symbol, market):
13
+ url = (f"https://basic.10jqka.com.cn/basicapi/operate/index/v1/product_index_query/?code={symbol}&market={market}"
14
+ f"&type=stock&account=1&timeField=date&analysisTypes=product,area,industry&sortIndex=income&currency=CNY&level=1&expands=product_introduction&locale=zh_CN")
15
+
16
+ headers = {
17
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
18
+ "Accept-Language": "zh-CN,zh;q=0.9",
19
+ "Cache-Control": "max-age=0",
20
+ "Connection": "keep-alive",
21
+ "Sec-Fetch-Dest": "document",
22
+ "Sec-Fetch-Mode": "navigate",
23
+ "Sec-Fetch-Site": "cross-site",
24
+ "Sec-Fetch-User": "?1",
25
+ "Upgrade-Insecure-Requests": "1",
26
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",
27
+ "sec-ch-ua": "\"Google Chrome\";v=\"129\", \"Not=A?Brand\";v=\"8\", \"Chromium\";v=\"129\"",
28
+ "sec-ch-ua-mobile": "?0",
29
+ "sec-ch-ua-platform": "\"Windows\"",
30
+ }
31
+
32
+ response = requests.get(url, headers=headers)
33
+ data_json = response.json()
34
+ data_list = data_json['data']
35
+ return data_list
36
+
37
+
38
+ if __name__ == '__main__':
39
+ company_product_area_industry('688551', '17')
@@ -148,6 +148,10 @@ HK_COMPANY_INDUSTRY = 'hk_company_industry'
148
148
 
149
149
  # 公司控股信息 子孙公司 联营公司
150
150
  COMPANY_HOLDING_INFO = 'company_holding_info'
151
+ # 公司业务组成
152
+ COMPANY_BUSINESS_INFO = 'company_business_info'
153
+
154
+
151
155
  # 公司公告信息
152
156
  COMPANY_ANNOUNCE_INFO = 'company_announce_info'
153
157
 
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-common
3
- Version: 1.5.0.4
3
+ Version: 1.5.0.7
4
4
 
@@ -50,6 +50,7 @@ mns_common/api/ths/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE
50
50
  mns_common/api/ths/big_deal/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
51
51
  mns_common/api/ths/big_deal/ths_big_deal_api.py,sha256=gxtIUbowxx8gDJZfT2RISrhXVmvsgbdclYbxUiZsTlY,3644
52
52
  mns_common/api/ths/company/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
53
+ mns_common/api/ths/company/company_product_area_industry_index_query.py,sha256=IjD6BY9LuuY3axiujTpduK1idn-pJUDr7qZd8TENxDI,1575
53
54
  mns_common/api/ths/company/ths_company_announce_api.py,sha256=10N_FmtqqKwRNP_l-KrZHG90Sd73U6xOT_zz7S5vxp0,2209
54
55
  mns_common/api/ths/company/ths_company_info_api.py,sha256=ka0O3nBTrAuHOtFqkaZlnQkyW_aqg_75R4ISmNgly4c,9490
55
56
  mns_common/api/ths/concept/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
@@ -137,7 +138,7 @@ mns_common/component/zt/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3Hi
137
138
  mns_common/component/zt/zt_common_service_api.py,sha256=6pHRLLJjKcLLBA-xXkAU8SE6DZ5dgVFBRVjJmhkL0II,11945
138
139
  mns_common/constant/__init__.py,sha256=xu36nA6MJTauswUWPfKIKH0E-lpOAHTw2TL5QI_6TeY,165
139
140
  mns_common/constant/black_list_classify_enum.py,sha256=I8U_DcltzYvlWjgn-TFLImgVgPuO0lxMnEJAQJBljdo,3995
140
- mns_common/constant/db_name_constant.py,sha256=m1qDZzchQ84hy7TX03o-NbYJiNd3nxF_KaTK_AzLw-c,4882
141
+ mns_common/constant/db_name_constant.py,sha256=RkSnmESDHf2yNrrwoa7Ox7SVVa2roq_RDwn1Lx0kP_k,4958
141
142
  mns_common/constant/east_money_stock_api.py,sha256=mW0b8sEgkf8WJtars2frOQYzsWgjIl4FDYEwcCcCSZY,7557
142
143
  mns_common/constant/extra_income_db_name.py,sha256=aXPuJSEgX7F3zpf4zal6wxejkxPbVmou_LMVlfms1SY,2701
143
144
  mns_common/constant/price_enum.py,sha256=nhcPxk0AFdQAp8IsNr5EP9xURLqqJuSl6ljIzTp7Wyo,1093
@@ -157,7 +158,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
157
158
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
158
159
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
159
160
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
160
- mns_common-1.5.0.4.dist-info/METADATA,sha256=AiofXOh3okJxRIPviD8XhiAUNQaYtDwWYQFisD6GT9Q,61
161
- mns_common-1.5.0.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
162
- mns_common-1.5.0.4.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
163
- mns_common-1.5.0.4.dist-info/RECORD,,
161
+ mns_common-1.5.0.7.dist-info/METADATA,sha256=Wbhq1NrWBDBvAKa8aBC5hdB6bFq1nxc0b57GoMLlr1M,61
162
+ mns_common-1.5.0.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
163
+ mns_common-1.5.0.7.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
164
+ mns_common-1.5.0.7.dist-info/RECORD,,