From 6650e56354ca12f7c6248ef828ef170f703d082c Mon Sep 17 00:00:00 2001 From: Ismael Carnales Date: Thu, 5 Feb 2009 13:35:14 +0000 Subject: [PATCH] changed representation of the project tree in the tutorial --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40824 --- .../trunk/docs/intro/tutorial/tutorial1.rst | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/scrapy/trunk/docs/intro/tutorial/tutorial1.rst b/scrapy/trunk/docs/intro/tutorial/tutorial1.rst index 92753e90f..c38451623 100644 --- a/scrapy/trunk/docs/intro/tutorial/tutorial1.rst +++ b/scrapy/trunk/docs/intro/tutorial/tutorial1.rst @@ -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: -* *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 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/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. +This will create a ``google`` directory with the following contents:: + + google/ + scrapy-ctl.py + google/ + __init__.py + 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`.