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.

21 lines
333 B

# -*- coding: utf-8 -*-
from abc import ABC, abstractclassmethod
class AbstractSpider(ABC):
"""
爬虫抽象类
"""
def init_config(self):
"""
初始化配置
:return:
"""
pass
def start(self, task_id):
"""
运行爬虫
:return:
"""