xpath - Scrapy Amazon absolute path but with no value returned -


i trying use scrapy info amazon.co.uk using absolute path below. strangely no value returned. quite new scrapy:

scrapy shell http://www.amazon.co.uk/product-reviews/b0042eu3a2/  response.xpath('//*[@id="productreviews"]/tbody/tr/td[1]/a[1]/@name').extract() 

i return name attribute in case is: ri4hgfjcsi04w.

just omit tbody expression:

in [1]: response.xpath('//*[@id="productreviews"]//tr/td[1]/a[1]/@name').extract() out[1]: [u'ri4hgfjcsi04w'] 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -