From 875b9abe8ae4fe76ae1f9b5bb155c79d154cf7dc Mon Sep 17 00:00:00 2001 From: Rolando Espinoza Date: Thu, 23 Jan 2014 18:04:57 -0400 Subject: [PATCH] Updated shell docs with the crawler reference and fixed the actual shell output. Also updated the shell example with a reproducible code example. --- docs/intro/tutorial.rst | 18 +++++----- docs/topics/shell.rst | 73 ++++++++++++++++++++++++----------------- 2 files changed, 53 insertions(+), 38 deletions(-) diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst index 246db1a60..bec653389 100644 --- a/docs/intro/tutorial.rst +++ b/docs/intro/tutorial.rst @@ -253,16 +253,18 @@ This is what the shell looks like:: [ ... Scrapy log here ... ] + 2014-01-23 17:11:42-0400 [default] DEBUG: Crawled (200) (referer: None) [s] Available Scrapy objects: - [s] 2010-08-19 21:45:59-0300 [default] INFO: Spider closed (finished) - [s] sel - [s] item Item() + [s] crawler + [s] item {} [s] request [s] response <200 http://www.dmoz.org/Computers/Programming/Languages/Python/Books/> - [s] spider + [s] sel \r\n\r\n + [s] settings + [s] spider [s] Useful shortcuts: - [s] shelp() Prints this help. - [s] fetch(req_or_url) Fetch a new request or URL and update objects + [s] shelp() Shell help (print this help) + [s] fetch(req_or_url) Fetch request (or URL) and update local objects [s] view(response) View response in a browser >>> @@ -131,24 +134,27 @@ After that, we can star playing with the objects:: >>> fetch("http://slashdot.org") [s] Available Scrapy objects: - [s] sel - [s] item JobItem() + [s] crawler + [s] item {} [s] request [s] response <200 http://slashdot.org> - [s] settings - [s] spider + [s] sel \n\n\n\n\n\n