ruia/spider.py
async def async_start(
            cls,
            middleware: typing.Union[typing.Iterable, Middleware] = None,
            loop=None,
            after_start=None,
            before_stop=None,
            **kwargs):
        """
        Start an async spider
        :param middleware: customize middleware or a list of middleware
        :param loop:
        :param after_start: hook
        :param before_stop: hook
        :return:
        """
        loop = loop or asyncio.get_event_loop()
        spider_ins = cls(middleware=middleware, loop=loop, is_async_start=True)
        await spider_ins._start(
            after_start=after_start, before_stop=before_stop)
async def async_start(
            cls,
            middleware: typing.Union[typing.Iterable, Middleware] = None,
            loop=None,
            after_start=None,
            before_stop=None,
            **kwargs):
        """
        Start an async spider
        :param middleware: customize middleware or a list of middleware
        :param loop:
        :param after_start: hook
        :param before_stop: hook
        :return:
        """
        loop = loop or asyncio.get_event_loop()
        spider_ins = cls(middleware=middleware, loop=loop, is_async_start=True)
        await spider_ins._start(
            after_start=after_start, before_stop=before_stop)
async def async_start ( cls , middleware : typing . Union [ typing . Iterable , Middleware ] = None , loop = None , after_start = None , before_stop = None , * * kwargs ) : loop = loop or asyncio . get_event_loop ( ) spider_ins = cls ( middleware = middleware , loop = loop , is_async_start = True ) await spider_ins . _start ( after_start = after_start , before_stop = before_stop )
Start an async spider
        :param middleware: customize middleware or a list of middleware
        :param loop:
        :param after_start: hook
        :param before_stop: hook
        :return:
Start an async spider : param middleware : customize middleware or a list of middleware : param loop : : param after_start : hook : param before_stop : hook : return :