Scrapy 0.9 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value('name', u'Color TV') loader.add_value('colours', [u'white', u'blue']) loader.add_value('length', u'100') loader.add_value('name' extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath('//p[@class="product-name"]') # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath('name', '//p[@class="product-name"]') # HTML snippet:the price
0 码力 | 156 页 | 764.56 KB | 1 年前3Scrapy 0.9 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value('name', u'Color TV') loader.add_value('colours', [u'white', u'blue']) loader.add_value('length', u'100') loader.add_value('name' extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath('//p[@class="product-name"]') # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath('name', '//p[@class="product-name"]') # HTML snippet:the price
0 码力 | 204 页 | 447.68 KB | 1 年前3Scrapy 0.14 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value('name', u'Color TV') loader.add_value('colours', [u'white', u'blue']) loader.add_value('length', u'100') loader.add_value('name' extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath('//p[@class="product-name"]') # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath('name', '//p[@class="product-name"]') # HTML snippet:the price
0 码力 | 235 页 | 490.23 KB | 1 年前3Scrapy 0.12 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value('name', u'Color TV') loader.add_value('colours', [u'white', u'blue']) loader.add_value('length', u'100') loader.add_value('name' extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath('//p[@class="product-name"]') # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath('name', '//p[@class="product-name"]') # HTML snippet:the price
0 码力 | 177 页 | 806.90 KB | 1 年前3Scrapy 0.12 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value('name', u'Color TV') loader.add_value('colours', [u'white', u'blue']) loader.add_value('length', u'100') loader.add_value('name' extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath('//p[@class="product-name"]') # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath('name', '//p[@class="product-name"]') # HTML snippet:the price
0 码力 | 228 页 | 462.54 KB | 1 年前3Scrapy 0.14 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value('name', u'Color TV') loader.add_value('colours', [u'white', u'blue']) loader.add_value('length', u'100') loader.add_value('name' extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath('//p[@class="product-name"]') # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath('name', '//p[@class="product-name"]') # HTML snippet:the price
0 码力 | 179 页 | 861.70 KB | 1 年前3Scrapy 0.22 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value(’name’, u’Color TV’) loader.add_value(’colours’, [u’white’, u’blue’]) loader.add_value(’length’, u’100’) loader.add_value(’name’ extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath(’//p[@class="product-name"]’) # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath(’name’, ’//p[@class="product-name"]’) # HTML snippet:the price
0 码力 | 199 页 | 926.97 KB | 1 年前3Scrapy 0.16 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value('name', u'Color TV') loader.add_value('colours', [u'white', u'blue']) loader.add_value('length', u'100') loader.add_value('name' extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath('//p[@class="product-name"]') # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath('name', '//p[@class="product-name"]') # HTML snippet:the price
0 码力 | 203 页 | 931.99 KB | 1 年前3Scrapy 0.18 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value('name', u'Color TV') loader.add_value('colours', [u'white', u'blue']) loader.add_value('length', u'100') loader.add_value('name' extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath('//p[@class="product-name"]') # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath('name', '//p[@class="product-name"]') # HTML snippet:the price
0 码力 | 201 页 | 929.55 KB | 1 年前3Scrapy 0.20 Documentation
processed value should be a dict with field_name mapped to values. Examples: loader.add_value(’name’, u’Color TV’) loader.add_value(’colours’, [u’white’, u’blue’]) loader.add_value(’length’, u’100’) loader.add_value(’name’ extracting data from the selected XPath region Examples: # HTML snippet:Color TV
loader.get_xpath(’//p[@class="product-name"]’) # HTML snippet:the price is $1200
xpath (str) – the XPath to extract data from Examples: # HTML snippet:Color TV
loader.add_xpath(’name’, ’//p[@class="product-name"]’) # HTML snippet:the price
0 码力 | 197 页 | 917.28 KB | 1 年前3
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7