From aab5a4a7dd014c6bd33bfc8136735d6f99fc127f Mon Sep 17 00:00:00 2001 From: Ismael Carnales Date: Tue, 16 Dec 2008 15:53:01 +0000 Subject: [PATCH] added links and reformated some texts --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40513 --- .../scrapy.org/docs/sources/intro/install.rst | 1 + .../docs/sources/tutorial/tutorial1.rst | 19 ++++++++++--------- .../docs/sources/tutorial/tutorial2.rst | 7 +++---- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/sites/scrapy.org/docs/sources/intro/install.rst b/sites/scrapy.org/docs/sources/intro/install.rst index d0df14df2..219b6332f 100644 --- a/sites/scrapy.org/docs/sources/intro/install.rst +++ b/sites/scrapy.org/docs/sources/intro/install.rst @@ -1,5 +1,6 @@ .. _install: +===================== How to install Scrapy ===================== diff --git a/sites/scrapy.org/docs/sources/tutorial/tutorial1.rst b/sites/scrapy.org/docs/sources/tutorial/tutorial1.rst index 95a52e962..89b9713ef 100644 --- a/sites/scrapy.org/docs/sources/tutorial/tutorial1.rst +++ b/sites/scrapy.org/docs/sources/tutorial/tutorial1.rst @@ -1,16 +1,18 @@ -===================== -Setting everything up -===================== +.. _tutorial1: -| In this tutorial, we'll teach you how to scrape http://www.google.com/dirhp; Google's web directory. -| We'll assume that you've checked and fulfilled the requirements specified in the Download page, and that Scrapy is already installed in your system. +====================== +Creating a new project +====================== + +In this tutorial, we'll teach you how to scrape http://www.google.com/dirhp Google's web directory. + +We'll assume that Scrapy is already installed in your system, if not see :ref:`install`. For starting a new project, enter the directory where you'd like your project to be located, and run:: scrapy-admin.py startproject google -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. * *scrapy_settings.py* - the project's settings file. @@ -25,5 +27,4 @@ containing the following files: export PYTHONPATH=/path/to/your/project - -Now you can continue with the next part of the tutorial. +Now you can continue with the next part of the tutorial: :ref:`tutorial2`. diff --git a/sites/scrapy.org/docs/sources/tutorial/tutorial2.rst b/sites/scrapy.org/docs/sources/tutorial/tutorial2.rst index b0e1dd08f..859808f61 100644 --- a/sites/scrapy.org/docs/sources/tutorial/tutorial2.rst +++ b/sites/scrapy.org/docs/sources/tutorial/tutorial2.rst @@ -1,11 +1,10 @@ +.. _tutorial2: + ================ Our first spider ================ -| Ok, the time to write our first spider has come. -| Make sure that you're standing on your project's directory and run: - -:: +Ok, the time to write our first spider has come. Make sure that you're standing on your project's directory and run:: ./scrapy-ctl genspider google_directory google.com