Here is the link. When you click on the first link("Accessories and Fluids"), a new table opens on the same page containing other links and clicking on other links,you'll interact with a table. The problem is that the first link have the same xpath as the second links , although they both have different urls, but how can I differentiate between both links so I could extract tables.
This xpath produces only first link portion whenever you move from the previous page to this one:
sp_half=response.xpath('//li[@class="tab pane first"]/a/@href').extract_first()
while this one produces all the links of that page containing other links also.
urls=response.xpath('//li/a/@href').extract()
the second xpath is producing the required urls with lot of extra links. I'm using scrapy to do this. Is there any way to differentiate first urls and second urls which allow me to extract the table.