Scrapy 0.9 Documentation
Architecture overview Understand the Scrapy architecture. Downloader Middleware Customize how pages get requested and downloaded. Spider Middleware Customize the input and output of your spiders. Extensions an iterable of Item objects. Parameters: response – the response to parse log(message[, level, component]) Log a message using the scrapy.log.msg() function, automatically populating the spider argument adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware and before start parsing it. It can be used used for modifying the response body before parsing0 码力 | 204 页 | 447.68 KB | 1 年前3Scrapy 2.4 Documentation
. . . . . . . . . . 205 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . objects. Parameters response (Response) – the response to parse log(message[, level, component]) Wrapper that sends a log message through the Spider’s logger, kept for backward compatibility. For more adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing0 码力 | 354 页 | 1.39 MB | 1 年前3Scrapy 2.6 Documentation
. . . . . . . . . . 219 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . objects. Parameters response (Response) – the response to parse log(message[, level, component]) Wrapper that sends a log message through the Spider’s logger, kept for backward compatibility. For more adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing0 码力 | 384 页 | 1.63 MB | 1 年前3Scrapy 2.5 Documentation
. . . . . . . . . . 211 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . objects. Parameters response (Response) – the response to parse log(message[, level, component]) Wrapper that sends a log message through the Spider’s logger, kept for backward compatibility. For more adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing0 码力 | 366 页 | 1.56 MB | 1 年前3Scrapy 2.10 Documentation
. . . . . . . . . . 238 6.3 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 6.4 Spider Middleware . . . . . . . . . . . . . . . . . . . . Requires project: yes Start crawling using a spider. Supported options: • -h, --help: show a help message and exit • -a NAME=VALUE: set a spider argument (may be repeated) • --output FILE or -o FILE: append or None. Parameters response (Response) – the response to parse log(message[, level, component]) Wrapper that sends a log message through the Spider’s logger, kept for backward compatibility. For more0 码力 | 419 页 | 1.73 MB | 1 年前3Scrapy 0.9 Documentation
. . . . . . . . . . . 87 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . an iterable of Item objects. Parameters response – the response to parse log(message[, level, component]) Log a message using the scrapy.log.msg() function, automatically populating the spider argument adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware and before start parsing it. It can be used used for modifying the response body before parsing0 码力 | 156 页 | 764.56 KB | 1 年前3Scrapy 2.1 Documentation
. . . . . . . . . . 199 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . objects. Parameters response (Response) – the response to parse log(message[, level, component]) Wrapper that sends a log message through the Spider’s logger, kept for backward compatibility. For more adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing0 码力 | 342 页 | 1.32 MB | 1 年前3Scrapy 2.2 Documentation
. . . . . . . . . . 203 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . objects. Parameters response (Response) – the response to parse log(message[, level, component]) Wrapper that sends a log message through the Spider’s logger, kept for backward compatibility. For more adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing0 码力 | 348 页 | 1.35 MB | 1 年前3Scrapy 2.3 Documentation
. . . . . . . . . . 205 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . objects. Parameters response (Response) – the response to parse log(message[, level, component]) Wrapper that sends a log message through the Spider’s logger, kept for backward compatibility. For more adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing0 码力 | 352 页 | 1.36 MB | 1 年前3Scrapy 2.0 Documentation
. . . . . . . . . . 197 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . objects. Parameters response (Response) – the response to parse log(message[, level, component]) Wrapper that sends a log message through the Spider’s logger, kept for backward compatibility. For more adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider 3.2. Spiders 39 Scrapy Documentation, Release 2.0.1 starts parsing it. It0 码力 | 336 页 | 1.31 MB | 1 年前3
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7