mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-26 22:44:05 +00:00
changed representation of the project tree in the tutorial
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40824
This commit is contained in:
parent
8f349737f8
commit
6650e56354
@ -16,12 +16,28 @@ For starting a new project, enter the directory where you'd like your project to
|
|||||||
|
|
||||||
As long as Scrapy is well installed and the path is set, this should create a directory called "google" containing the following files:
|
As long as Scrapy is well installed and the path is set, this should create a directory called "google" containing the following files:
|
||||||
|
|
||||||
* *scrapy-ctl.py* - the project's control script. It's used for running the different tasks (like "genspider", "crawl" and "parse"). We'll talk more about this later.
|
This will create a ``google`` directory with the following contents::
|
||||||
* *google/* - the projects' actual python module, you'll import your code from here.
|
|
||||||
* *google/items.py* - were you define the different kinds of items you're going to scrape.
|
google/
|
||||||
* *google/pipelines.py* - were you define your item pipelines.
|
scrapy-ctl.py
|
||||||
* *google/settings.py* - the project's settings file.
|
google/
|
||||||
* *google/spiders/* - directory where you'll later place your spiders.
|
__init__.py
|
||||||
* *google/templates/* - directory containing some templates for newly created spiders, and where you can put your own.
|
items.py
|
||||||
|
pipelines.py
|
||||||
|
settings.py
|
||||||
|
spiders/
|
||||||
|
__init__.py
|
||||||
|
templates/
|
||||||
|
...
|
||||||
|
|
||||||
|
These are basically:
|
||||||
|
|
||||||
|
* ``scrapy-ctl.py``: the project's control script. It's used for running the different tasks (like "genspider", "crawl" and "parse"). We'll talk more about this later.
|
||||||
|
* ``google/``: the project's actual python module, you'll import your code from here.
|
||||||
|
* ``google/items.py*``: were you define the different kinds of items you're going to scrape.
|
||||||
|
* ``google/pipelines.py``: were you define your item pipelines.
|
||||||
|
* ``google/settings.py``: the project's settings file.
|
||||||
|
* ``google/spiders/``: directory where you'll later place your spiders.
|
||||||
|
* ``google/templates/``: directory containing some templates for newly created spiders, and where you can put your own.
|
||||||
|
|
||||||
Now you can continue with the next part of the tutorial: :ref:`intro-tutorial2`.
|
Now you can continue with the next part of the tutorial: :ref:`intro-tutorial2`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user