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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# -*- 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)