Commit 48db6370 authored by hujun's avatar hujun

1

parent fa8e3f19
...@@ -82,7 +82,7 @@ class DownFile: ...@@ -82,7 +82,7 @@ class DownFile:
url = local_file = "" url = local_file = ""
count_sleep = 0 count_sleep = 0
for item in data: for item in data:
if count_sleep == 50: if count_sleep >= 50:
self.log('sleep', '-----10s-----') self.log('sleep', '-----10s-----')
time.sleep(10) time.sleep(10)
count_sleep = 0 count_sleep = 0
...@@ -262,7 +262,7 @@ class DownFile: ...@@ -262,7 +262,7 @@ class DownFile:
url = self.url + "&" + self.page_string + "=" + str( url = self.url + "&" + self.page_string + "=" + str(
page_no) + "&" + self.call_date_string + "=" + str(yesterday) page_no) + "&" + self.call_date_string + "=" + str(yesterday)
data = self.get_data(url) data = self.get_data(url)
self.log('download_page_th', "page_no=" + str(page_no) + "&day=" + str(yesterday)) self.log('download_page_th', "page_no=" + str(page_no))
if len(data): if len(data):
t = threading.Thread(target=self.download_aliyun, args=(data,)) t = threading.Thread(target=self.download_aliyun, args=(data,))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment