Scrapy 1.0 Documentation
described below. Some of them, like the MapCompose (which is typically used as input processor) compose the output of several functions executed in order, to produce the final parsed value. Here is a Join('
') >>> proc(['one', 'two', 'three']) u'one
two
three' class scrapy.loader.processors.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the keyword argument stop_on_none=False. Example: >>> from scrapy.loader.processors import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally0 码力 | 244 页 | 1.05 MB | 1 年前3Scrapy 0.14 Documentation
described below. Some of them, like the MapCompose (which is typically used as input processor) compose the output of several functions executed in order, to produce the final parsed value. Here is a >>> proc(['one', 'two', 'three']) u'one
two
three' class scrapy.contrib.loader.processor.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the argument stop_on_none=False. Example: >>> from scrapy.contrib.loader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally0 码力 | 235 页 | 490.23 KB | 1 年前3Scrapy 0.12 Documentation
described below. Some of them, like the MapCompose (which is typically used as input processor) compose the output of several functions executed in order, to produce the final parsed value. Here is a >>> proc(['one', 'two', 'three']) u'one
two
three' class scrapy.contrib.loader.processor.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the argument stop_on_none=False. Example: >>> from scrapy.contrib.loader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally0 码力 | 177 页 | 806.90 KB | 1 年前3Scrapy 0.12 Documentation
described below. Some of them, like the MapCompose (which is typically used as input processor) compose the output of several functions executed in order, to produce the final parsed value. Here is a >>> proc(['one', 'two', 'three']) u'one
two
three' class scrapy.contrib.loader.processor.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the argument stop_on_none=False. Example: >>> from scrapy.contrib.loader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally0 码力 | 228 页 | 462.54 KB | 1 年前3Scrapy 0.14 Documentation
described below. Some of them, like the MapCompose (which is typically used as input processor) compose the output of several functions executed in order, to produce the final parsed value. Here is a 6. Item Loaders 51 Scrapy Documentation, Release 0.14.4 class scrapy.contrib.loader.processor.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the argument stop_on_none=False. Example: >>> from scrapy.contrib.loader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally0 码力 | 179 页 | 861.70 KB | 1 年前3Scrapy 1.2 Documentation
described below. Some of them, like the MapCompose (which is typically used as input processor) compose the output of several functions executed in order, to produce the final parsed value. Here is a u'one
two
three' 3.5. Item Loaders 65 Scrapy Documentation, Release 1.2.3 class scrapy.loader.processors.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the keyword argument stop_on_none=False. Example: >>> from scrapy.loader.processors import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally0 码力 | 266 页 | 1.10 MB | 1 年前3Scrapy 1.1 Documentation
described below. Some of them, like the MapCompose (which is typically used as input processor) compose the output of several functions executed in order, to produce the final parsed value. Here is a Join('
') >>> proc(['one', 'two', 'three']) u'one
two
three' class scrapy.loader.processors.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the keyword argument stop_on_none=False. Example: >>> from scrapy.loader.processors import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally0 码力 | 260 页 | 1.12 MB | 1 年前3Scrapy 1.0 Documentation
described below. Some of them, like the MapCompose (which is typically used as input processor) compose the output of several functions executed in order, to produce the final parsed value. Here is a Join('
') >>> proc(['one', 'two', 'three']) u'one
two
three' class scrapy.loader.processors.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the keyword argument stop_on_none=False. Example: >>> from scrapy.loader.processors import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally0 码力 | 303 页 | 533.88 KB | 1 年前3Scrapy 1.3 Documentation
described below. Some of them, like the MapCompose (which is typically used as input processor) compose the output of several functions executed in order, to produce the final parsed value. Here is a Join('
') >>> proc(['one', 'two', 'three']) u'one
two
three' class scrapy.loader.processors.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the keyword argument stop_on_none=False. Example: >>> from scrapy.loader.processors import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally0 码力 | 272 页 | 1.11 MB | 1 年前3Scrapy 0.9 Documentation
>>> proc(['one', 'two', 'three']) u'one
two
three' class scrapy.contrib.loader.processor.Compose(*functions, **default_loader_context) A processor which is constructed from the composition of the argument stop_on_none=False. Example: >>> from scrapy.contrib.loader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally ) A processor which is constructed from the composition of the given functions, similar to the Compose pro- 3.5. Item Loaders 43 Scrapy Documentation, Release 0.9 cessor. The difference with this processor0 码力 | 156 页 | 764.56 KB | 1 年前3
共 41 条
- 1
- 2
- 3
- 4
- 5