mirror of https://github.com/scrapy/scrapy.git
14 lines
304 B
Python
14 lines
304 B
Python
import scrapy
|
|
from scrapy.crawler import CrawlerProcess
|
|
|
|
|
|
class AsyncioReactorSpider(scrapy.Spider):
|
|
name = 'asyncio_reactor'
|
|
|
|
|
|
process = CrawlerProcess(settings={
|
|
"TWISTED_REACTOR": "twisted.internet.asyncioreactor.AsyncioSelectorReactor",
|
|
})
|
|
process.crawl(AsyncioReactorSpider)
|
|
process.start()
|