mns-common 1.3.9.9__py3-none-any.whl → 1.4.0.0__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 +1 -7
- {mns_common-1.3.9.9.dist-info → mns_common-1.4.0.0.dist-info}/METADATA +1 -1
- {mns_common-1.3.9.9.dist-info → mns_common-1.4.0.0.dist-info}/RECORD +5 -5
- {mns_common-1.3.9.9.dist-info → mns_common-1.4.0.0.dist-info}/WHEEL +0 -0
- {mns_common-1.3.9.9.dist-info → mns_common-1.4.0.0.dist-info}/top_level.txt +0 -0
|
@@ -69,14 +69,8 @@ def generate_proxy_ip(minutes):
|
|
|
69
69
|
time_to_add = datetime.timedelta(minutes=minutes)
|
|
70
70
|
new_date = now_date + time_to_add
|
|
71
71
|
str_now_date = new_date.strftime('%Y-%m-%d %H:%M:%S')
|
|
72
|
-
|
|
73
72
|
# 获取10分钟动态ip
|
|
74
|
-
|
|
75
|
-
ip = generate_proxy_ip_api(minutes)
|
|
76
|
-
if check_proxy(ip, timeout=2):
|
|
77
|
-
break
|
|
78
|
-
else:
|
|
79
|
-
time.sleep(0.5)
|
|
73
|
+
ip = generate_proxy_ip_api(minutes)
|
|
80
74
|
result_dict = {"_id": ip,
|
|
81
75
|
'effect_time': str_now_date,
|
|
82
76
|
'ip': ip}
|
|
@@ -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=kzJ0OWWQVNte-SiV_OwEABG6KPX4FaZnZK42bHWMJGI,6075
|
|
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.
|
|
156
|
-
mns_common-1.
|
|
157
|
-
mns_common-1.
|
|
158
|
-
mns_common-1.
|
|
155
|
+
mns_common-1.4.0.0.dist-info/METADATA,sha256=bt62Ih8aZdr44Lwy257y40-UZ-WvobYc_oY0Y0P8n1E,61
|
|
156
|
+
mns_common-1.4.0.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
157
|
+
mns_common-1.4.0.0.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
|
|
158
|
+
mns_common-1.4.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|