Groups
Groups
Sign in
Groups
Groups
scrapy-users
Conversations
About
Send feedback
Help
Scraping definition lists without id?
24 views
Skip to first unread message
JEBI93
unread,
Nov 27, 2014, 5:24:45 PM
11/27/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scrapy...@googlegroups.com
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.
Nicolás Alejandro Ramírez Quiros
unread,
Nov 27, 2014, 7:43:37 PM
11/27/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scrapy...@googlegroups.com
this should work.
stock_number = (//span[text()="Stock Number"]/following::dd)[1]//text()
vin = (//span[text()="VIN"]/following::dd)[1]//text()
JEBI93
unread,
Nov 30, 2014, 12:35:16 PM
11/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scrapy...@googlegroups.com
Thanks, it worked!
Reply all
Reply to author
Forward
0 new messages