edison7500 / scrapy-mongoengine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scrapy-mongoengine

Usage

in your scrapu settings.py

# mongodb
MONGOENGINE_ENABLED = True
MONGODB_DATABASES = {
    "default": {
        "name": "scrapy",
        "host": "127.0.0.1",
        "password": database_password,
        "username": database_user,
        "tz_aware": True,  # if you using timezones in django (USE_TZ = True)
    }
}

MONGODB_UNIQUE_KEY = "origin_link"
MONGODB_ADD_TIMESTAMP = True

About

License:MIT License


Languages

Language:Python 100.0%