MCPcopy
hub / github.com/scrapy/scrapy / __init__

Method __init__

tests/test_spidermiddleware_httperror.py:21–31  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

19 bypass_status_codes: set[int] = set()
20
21 def __init__(self, *args, **kwargs):
22 super().__init__(*args, **kwargs)
23 self.start_urls = [
24 self.mockserver.url("/status?n=200"),
25 self.mockserver.url("/status?n=404"),
26 self.mockserver.url("/status?n=402"),
27 self.mockserver.url("/status?n=500"),
28 ]
29 self.failed = set()
30 self.skipped = set()
31 self.parsed = set()
32
33 async def start(self):
34 for url in self.start_urls:

Callers

nothing calls this directly

Calls 1

urlMethod · 0.45

Tested by

no test coverage detected