Scrapy 0.9 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which does MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello’” it will appear in the Scrapy log. If ommited, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 204 页 | 447.68 KB | 1 年前3
Scrapy 0.14 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which do, this MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello’” it will appear in the Scrapy log. If ommited, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 235 页 | 490.23 KB | 1 年前3
Scrapy 0.12 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which do, this MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello’” it will appear in the Scrapy log. If ommited, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 228 页 | 462.54 KB | 1 年前3
Scrapy 0.9 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which does MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello”’ it will appear in the Scrapy log. If ommited, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 156 页 | 764.56 KB | 1 年前3
Scrapy 0.12 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which do, this MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello”’ it will appear in the Scrapy log. If ommited, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 177 页 | 806.90 KB | 1 年前3
Scrapy 0.14 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which do, this MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello”’ it will appear in the Scrapy log. If ommited, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 179 页 | 861.70 KB | 1 年前3
Scrapy 0.16 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which do, this MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello’” it will appear in the Scrapy log. If omitted, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 272 页 | 522.10 KB | 1 年前3
Scrapy 0.20 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which do, this MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello’” it will appear in the Scrapy log. If omitted, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 276 页 | 564.53 KB | 1 年前3
Scrapy 0.18 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which do, this MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello’” it will appear in the Scrapy log. If omitted, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 273 页 | 523.49 KB | 1 年前3
Scrapy 0.22 Documentationloader.processor import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a loader_context parameter. For those which do, this MapCompose >>> proc = MapCompose(filter_world, unicode.upper) >>> proc([u'hello', u'world', u'this', u'is', u'scrapy']) [u'HELLO, u'THIS', u'IS', u'SCRAPY'] As with the Compose processor, functions can standard output (and error) of your application will be logged instead. For example if you “print ‘hello’” it will appear in the Scrapy log. If omitted, the LOG_STDOUT setting will be used. scrapy.log.msg(message0 码力 | 303 页 | 566.66 KB | 1 年前3
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













