You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
374 B

3 years ago
# -*- coding: utf-8 -*-
import settings
import middlewares
import time
if __name__ == "__main__":
# category = "冰淇淋" # 要爬取的种类默认是牛奶详见settings.py
start_time = time.time()
for category in settings.BASEURL.keys():
middlewares.singleSpider(category)
end_time = time.time()
print(start_time - end_time)