mirror of https://github.com/scrapy/scrapy.git
17 lines
310 B
Python
17 lines
310 B
Python
import scrapy
|
|
from scrapy.crawler import CrawlerProcess
|
|
from twisted.internet import reactor # noqa: F401
|
|
|
|
|
|
class NoRequestsSpider(scrapy.Spider):
|
|
name = 'no_request'
|
|
|
|
def start_requests(self):
|
|
return []
|
|
|
|
|
|
process = CrawlerProcess(settings={})
|
|
|
|
process.crawl(NoRequestsSpider)
|
|
process.start()
|