MCPcopy
hub / github.com/scrapy/scrapy / export_item

Method export_item

scrapy/exporters.py:330–332  ·  view source on GitHub ↗
(self, item: Any)

Source from the content-addressed store, hash-verified

328 self.file: BytesIO = file
329
330 def export_item(self, item: Any) -> None:
331 itemdict = dict(self._get_serialized_fields(item))
332 self.file.write(to_bytes(pprint.pformat(itemdict) + "\n"))
333
334
335class PythonItemExporter(BaseItemExporter):

Callers

nothing calls this directly

Calls 3

to_bytesFunction · 0.90
writeMethod · 0.45

Tested by

no test coverage detected