MCPcopy
hub / github.com/scrapy/scrapy / start_parsing

Method start_parsing

scrapy/commands/parse.py:266–274  ·  view source on GitHub ↗
(self, url: str, opts: argparse.Namespace)

Source from the content-addressed store, hash-verified

264 self.spidercls.start = start # type: ignore[assignment,method-assign]
265
266 def start_parsing(self, url: str, opts: argparse.Namespace) -> None:
267 assert self.crawler_process
268 assert self.spidercls
269 self.crawler_process.crawl(self.spidercls, **opts.spargs)
270 self.pcrawler = next(iter(self.crawler_process.crawlers))
271 self.crawler_process.start()
272
273 if not self.first_response:
274 logger.error("No response downloaded for: %(url)s", {"url": url})
275
276 def scraped_data(
277 self,

Callers 1

runMethod · 0.95

Calls 3

errorMethod · 0.80
crawlMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected