|
@@ -21,7 +21,7 @@ def scrape(heat):
|
21
|
21
|
request_data_str = rds.get_request_params(heat)
|
22
|
22
|
|
23
|
23
|
if request_data_str is None:
|
24
|
|
- time.sleep(0.1)
|
|
24
|
+ time.sleep(1)
|
25
|
25
|
continue
|
26
|
26
|
|
27
|
27
|
rds_list = RdsLivePromotionsRequestList()
|
|
@@ -103,8 +103,4 @@ if __name__ == "__main__":
|
103
|
103
|
|
104
|
104
|
current_time = time.time()
|
105
|
105
|
|
106
|
|
- if current_time - start_time > 1800:
|
107
|
|
- print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + ' 主方法执行终止')
|
108
|
|
- sys.exit(0)
|
109
|
|
-
|
110
|
106
|
time.sleep(0.01)
|