Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 605 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 605 Bytes

Gerapy Item Pipeline

This is a package for supporting Item Pipelines in Scrapy, also this package is a module in Gerapy.

Installation

pip3 install gerapy-item-pipeline

Usage

These are all kinds of the storage implemented.

MongoDB

MONGODB_CONNECTION_STRING = 'localhost'
MONGODB_DATABASE_NAME = 'default'
MONGODB_UPSERT = True
MONGODB_COLLECTION_NAME_FIELD = 'mongodb_collection_name'
MONGODB_COLLECTION_NAME_DEFAULT = 'default'
MONGODB_ITEM_PRIMARY_KEY_FIELD = 'primary_key'
MONGODB_ITEM_PRIMARY_KEY_DEFAULT = 'id'