Scrapy 0.9 Documentation
Firefox for scraping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 5.3 Using Firebug for scraping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . existing cookies, see a list of cookies for the current site, manage cookies permissions and a lot more. 5.3 Using Firebug for scraping 5.3.1 Introduction This document explains how to use Firebug (a Firefox that there are more subcategories than the ones being shown in this page, so we’ll keep looking: 5.3. Using Firebug for scraping 73 Scrapy Documentation, Release 0.9 As expected, the subcategories contain0 码力 | 156 页 | 764.56 KB | 1 年前3Scrapy 0.12 Documentation
Firefox for scraping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 5.3 Using Firebug for scraping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . existing cookies, see a list of cookies for the current site, manage cookies permissions and a lot more. 5.3 Using Firebug for scraping 5.3.1 Introduction This document explains how to use Firebug (a Firefox a very tedious task. In the following screenshot you can see the Inspect Element tool in action. 5.3. Using Firebug for scraping 83 Scrapy Documentation, Release 0.12.0 At first sight, we can see that0 码力 | 177 页 | 806.90 KB | 1 年前3Scrapy 0.14 Documentation
Firefox for scraping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 5.3 Using Firebug for scraping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . existing cookies, see a list of cookies for the current site, manage cookies permissions and a lot more. 5.3 Using Firebug for scraping Note: Google Directory, the example website used in this guide is no longer that there are more subcategories than the ones being shown in this page, so we’ll keep looking: 5.3. Using Firebug for scraping 85 Scrapy Documentation, Release 0.14.4 As expected, the subcategories0 码力 | 179 页 | 861.70 KB | 1 年前3Scrapy 0.16 Documentation
Spiders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 5.3 Spiders Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . received for %s' % response.url, level=log.WARNING) For more information, check the Logging section. 5.3 Spiders Contracts New in version 0.15. Note: This is a new feature (introduced in Scrapy 0.15) and @url http://www.amazon.com/s?field-keywords=selfish+gene @returns items 1 16 @returns requests 0 0 5.3. Spiders Contracts 83 Scrapy Documentation, Release 0.16.5 @scrapes Title Author Year Price """0 码力 | 203 页 | 931.99 KB | 1 年前3Scrapy 2.2 Documentation
Spiders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 5.3 Spiders Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . warning('No item received for %s', response.url) For more information, check the Logging section. 5.3 Spiders Contracts New in version 0.15. Testing spiders can get particularly annoying and while nothing parses a sample response. Some contracts are mingled with this docstring. (continues on next page) 5.3. Spiders Contracts 163 Scrapy Documentation, Release 2.2.1 (continued from previous page) @url http://www0 码力 | 348 页 | 1.35 MB | 1 年前3Scrapy 1.5 Documentation
Spiders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 5.3 Spiders Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . warning('No item received for %s', response.url) For more information, check the Logging section. 5.3 Spiders Contracts New in version 0.15. Note: This is a new feature (introduced in Scrapy 0.15) and scrapy.contracts import Contract from scrapy.exceptions import ContractFail (continues on next page) 5.3. Spiders Contracts 139 Scrapy Documentation, Release 1.5.2 (continued from previous page) class0 码力 | 285 页 | 1.17 MB | 1 年前3Scrapy 1.6 Documentation
Spiders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 5.3 Spiders Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . warning('No item received for %s', response.url) For more information, check the Logging section. 5.3 Spiders Contracts New in version 0.15. Note: This is a new feature (introduced in Scrapy 0.15) and response received. Raise scrapy. exceptions.ContractFail in order to get the failures pretty printed: 5.3. Spiders Contracts 145 Scrapy Documentation, Release 1.6.0 from scrapy.contracts import Contract0 码力 | 295 页 | 1.18 MB | 1 年前3Scrapy 1.7 Documentation
Spiders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 5.3 Spiders Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . the Logging section. 146 Chapter 5. Solving specific problems Scrapy Documentation, Release 1.7.4 5.3 Spiders Contracts New in version 0.15. Note: This is a new feature (introduced in Scrapy 0.15) and SPIDER_CONTRACTS = { 'myproject.contracts.ResponseCheck': 10, 'myproject.contracts.ItemValidate': 10, } 5.3. Spiders Contracts 147 Scrapy Documentation, Release 1.7.4 Each contract must inherit from Contract0 码力 | 306 页 | 1.23 MB | 1 年前3Scrapy 1.8 Documentation
Spiders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 5.3 Spiders Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . warning('No item received for %s', response.url) For more information, check the Logging section. 5.3 Spiders Contracts New in version 0.15. Testing spiders can get particularly annoying and while nothing 0 0 @scrapes Title Author Year Price """ This callback is tested using three built-in contracts: 5.3. Spiders Contracts 159 Scrapy Documentation, Release 1.8.4 class scrapy.contracts.default.UrlContract0 码力 | 335 页 | 1.44 MB | 1 年前3Scrapy 0.18 Documentation
Spiders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 5.3 Spiders Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . received for %s' % response.url, level=log.WARNING) For more information, check the Logging section. 5.3 Spiders Contracts New in version 0.15. Note: This is a new feature (introduced in Scrapy 0.15) and0 码力 | 201 页 | 929.55 KB | 1 年前3
共 31 条
- 1
- 2
- 3
- 4