Python Scrapy: Creating a Project

To set up a new Scrapy project, in a desired directory, run:

scrapy startproject tutorial

This will create a directory structure like this:

tutorial/
    scrapy.cfg            # Deploy configuration file
    tutorial/             # Project's Python module
        __init__.py
        items.py          # Project items definition
        middlewares.py    # Project middlewares
        pipelines.py      # Project pipelines
        settings.py       # Project settings
        spiders/          # Directory for the spiders
            __init__.py

Previous     Next

Use the Search Bar to find content on MarketingMind.