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