mns-common 1.3.9.7__py3-none-any.whl → 1.3.9.8__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.
- mns_common/component/proxies/proxy_common_api.py +9 -9
- {mns_common-1.3.9.7.dist-info → mns_common-1.3.9.8.dist-info}/METADATA +1 -1
- {mns_common-1.3.9.7.dist-info → mns_common-1.3.9.8.dist-info}/RECORD +5 -5
- {mns_common-1.3.9.7.dist-info → mns_common-1.3.9.8.dist-info}/WHEEL +0 -0
- {mns_common-1.3.9.7.dist-info → mns_common-1.3.9.8.dist-info}/top_level.txt +0 -0
|
@@ -50,7 +50,7 @@ def generate_proxy_ip(minutes):
|
|
|
50
50
|
secret = list(stock_account_info['account'])[0]
|
|
51
51
|
|
|
52
52
|
now_date = datetime.datetime.now()
|
|
53
|
-
time_to_add = datetime.timedelta(minutes=minutes
|
|
53
|
+
time_to_add = datetime.timedelta(minutes=minutes)
|
|
54
54
|
new_date = now_date + time_to_add
|
|
55
55
|
str_now_date = new_date.strftime('%Y-%m-%d %H:%M:%S')
|
|
56
56
|
|
|
@@ -67,21 +67,21 @@ def generate_proxy_ip(minutes):
|
|
|
67
67
|
return ip
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
def get_proxy_ip(
|
|
70
|
+
def get_proxy_ip(minutes):
|
|
71
71
|
ip_proxy_pool = query_liu_guan_proxy_ip()
|
|
72
72
|
if data_frame_util.is_empty(ip_proxy_pool):
|
|
73
73
|
return generate_proxy_ip(minutes)
|
|
74
74
|
else:
|
|
75
|
-
if check_valid(
|
|
75
|
+
if check_valid(ip_proxy_pool):
|
|
76
76
|
return list(ip_proxy_pool['ip'])[0]
|
|
77
77
|
else:
|
|
78
78
|
return generate_proxy_ip(minutes)
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
if __name__ == '__main__':
|
|
82
|
-
|
|
83
|
-
while True:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
generate_proxy_ip(1)
|
|
83
|
+
# while True:
|
|
84
|
+
# now_date_test = datetime.datetime.now()
|
|
85
|
+
# str_now_date_test = now_date_test.strftime('%Y-%m-%d %H:%M:%S')
|
|
86
|
+
# ip_test = get_proxy_ip(str_now_date_test)
|
|
87
|
+
# print(ip_test)
|
|
@@ -113,7 +113,7 @@ mns_common/component/k_line/patterns/pattern_Enum.py,sha256=bl8cH1H3BWdj_deVO124
|
|
|
113
113
|
mns_common/component/price/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
114
114
|
mns_common/component/price/trade_price_service_api.py,sha256=0loBjbOt__o-ngc2Q4n5lF8_0x2WINRpL-cH1341Uaw,4396
|
|
115
115
|
mns_common/component/proxies/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
116
|
-
mns_common/component/proxies/proxy_common_api.py,sha256=
|
|
116
|
+
mns_common/component/proxies/proxy_common_api.py,sha256=TqHdbJM4e6Y5aHSsDB8wYXtcaYIbqjrOn9mxrLtbC_w,2763
|
|
117
117
|
mns_common/component/qmt/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
118
118
|
mns_common/component/qmt/qmt_buy_service.py,sha256=tLTgrSxCcxuMhADRBBrW4ZWR_3MdbMZvvMdH5hbwyJU,7190
|
|
119
119
|
mns_common/component/real_time/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
@@ -152,7 +152,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
|
|
|
152
152
|
mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
|
|
153
153
|
mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
|
|
154
154
|
mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
|
|
155
|
-
mns_common-1.3.9.
|
|
156
|
-
mns_common-1.3.9.
|
|
157
|
-
mns_common-1.3.9.
|
|
158
|
-
mns_common-1.3.9.
|
|
155
|
+
mns_common-1.3.9.8.dist-info/METADATA,sha256=58B8LAPT3KMbtKZqoNSVH6EyONeCZotHdbCD3kJ6hmg,61
|
|
156
|
+
mns_common-1.3.9.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
157
|
+
mns_common-1.3.9.8.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
|
|
158
|
+
mns_common-1.3.9.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|