this should work. stock_number = (//span[text()="Stock Number"]/following::dd)[1]//text() vin = (//span[text()="VIN"]/following::dd)[1]//text()
El jueves, 27 de noviembre de 2014 20:24:45 UTC-2, JEBI93 escribió: > > Is there any way i can scrape elements like this: > http://i.imgur.com/pRbzL2h.png > The url is: > http://www.whitebearautos.com/used/Audi/2008-Audi-A3-ddc841510a0a00de7db60364121a4859.htm > So some of cars don't have VIN or Model code, so if let's say car doesn't > have VIN number and has Model code because there's none class id it will > print Model code instead of VAT. > btw I'm using ItemLoader. > -- You received this message because you are subscribed to the Google Groups "scrapy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/scrapy-users. For more options, visit https://groups.google.com/d/optout.
