mirror of https://github.com/scrapy/scrapy.git
18 lines
309 B
Python
18 lines
309 B
Python
import scrapy
|
|
from scrapy.crawler import AsyncCrawlerProcess
|
|
|
|
|
|
class NoRequestsSpider(scrapy.Spider):
|
|
name = "no_request"
|
|
|
|
async def start(self):
|
|
return
|
|
yield
|
|
|
|
|
|
process = AsyncCrawlerProcess(settings={})
|
|
|
|
process.crawl(NoRequestsSpider)
|
|
process.crawl(NoRequestsSpider)
|
|
process.start()
|