Commit bedeb54e by 陈森彬

只需要digikey的token

parent 1105c7cc
Showing with 2 additions and 3 deletions
......@@ -13,8 +13,8 @@ import lib
import token_lib
from log_manage import get_logger
# 去掉digikey,mouser的爬虫token
process_list = ['digikey',"mouser"]
# 需要的爬虫token
process_list = ['apidigikey']
logger = get_logger('app')
......@@ -55,7 +55,6 @@ def init_task(queue):
if issubclass(cls[1], token_lib.BaseTokenCrawler):
platform = getattr(module, "PLATFORM")
if platform in process_list:
continue
level = getattr(module, "LEVEL", DEFAULT_INTERVAL)
main_num = getattr(module, "MAIN_NUM", -1)
back_num = getattr(module, "BACK_NUM", -1)
......
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 sign in to comment