提交 edca2832 编写于 作者: E Elias Dorneles 提交者: GitHub

Merge pull request #2054 from matt-oconnell/tutorial-typos

Typo fixes
......@@ -470,12 +470,12 @@ Here is a modification to our spider that does just that::
item['desc'] = sel.xpath('text()').extract()
yield item
Now the `parse()` method only extract the interesting links from the page,
Now the `parse()` method only extracts the interesting links from the page,
builds a full absolute URL using the `response.urljoin` method (since the links can
be relative) and yields new requests to be sent later, registering as callback
the method `parse_dir_contents()` that will ultimately scrape the data we want.
What you see here is the Scrapy's mechanism of following links: when you yield
What you see here is Scrapy's mechanism of following links: when you yield
a Request in a callback method, Scrapy will schedule that request to be sent
and register a callback method to be executed when that request finishes.
......@@ -483,7 +483,7 @@ Using this, you can build complex crawlers that follow links according to rules
you define, and extract different kinds of data depending on the page it's
visiting.
A common pattern is a callback method that extract some items, looks for a link
A common pattern is a callback method that extracts some items, looks for a link
to follow to the next page and then yields a `Request` with the same callback
for it::
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册