Skip to content

Commit

Permalink
Merge pull request #15 from zytedata/setup-zyte-item-adapter
Browse files Browse the repository at this point in the history
Setup ZyteItemAdapater
  • Loading branch information
kmike authored Nov 10, 2023
2 parents ca4dfb9 + 7ef5409 commit 1a018fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ The following additional settings are recommended:
``"zyte_crawlers.middlewares.CrawlingLogsMiddleware": 1000``, to log crawl
data in JSON format for debugging purposes.

- Ensure that :class:`zyte_common_items.ZyteItemAdapter` is also configured::

from itemadapter import ItemAdapter
from zyte_common_items import ZyteItemAdapter

ItemAdapter.ADAPTER_CLASSES.appendleft(ZyteItemAdapter)

For an example of a properly configured ``settings.py`` file, see `the one
in zyte-spider-templates-project`_.

Expand Down

0 comments on commit 1a018fb

Please sign in to comment.