#-*- coding:utf-8 -*-
import binascii
import time
from module.operating import Operating
from multiprocessing.dummy import Pool as ThreadPool #多线程
import sys

def main():
try:
time.sleep(5)
data = Operating.getAllTextHref("http://www.mht.la/quanben/")
for x in data['href']:
Operating.downOneText(x)
except Exception:
print(Exception.__context__)

finally:
print("重启成功")
main()
if __name__ == '__main__':
main()