mns-common 1.5.0.4__py3-none-any.whl → 1.5.0.6__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')
@@ -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.6
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
@@ -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.6.dist-info/METADATA,sha256=ivLIUN88PgQu3yhGVdcZmjEGlZwBwvX13-7YKByOIuc,61
162
+ mns_common-1.5.0.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
163
+ mns_common-1.5.0.6.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
164
+ mns_common-1.5.0.6.dist-info/RECORD,,