minor corrections to overview doc

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40672
This commit is contained in:
Pablo Hoffman 2009-01-07 12:56:40 +00:00
parent cd148c946e
commit 41fbcbde48
1 changed files with 4 additions and 4 deletions

View File

@ -52,12 +52,12 @@ Write a Spider to extract the Items
===================================
Now we'll write a Spider which defines the start URL
(http://www.mininova.org/today), the rules for following links and extracting
data from pages.
(http://www.mininova.org/today), the rules for following links and the rules
for extracting the data from pages.
If we take a look at that page content we'll see that all torrent URLs are like
http://www.mininova.org/tor/NUMBER where NUMBER is a integer. We'll use that to
construct the regular expression for links to follow: `/tor/\d+`.
http://www.mininova.org/tor/NUMBER where ``NUMBER`` is an integer. We'll use
that to construct the regular expression for the links to follow: ``/tor/\d+``.
For extracting data we'll use `XPath`_ to select the part of the document where
the data is to be extracted. Let's take one of those torrent pages: