I'm trying to scrape from a dynamic JS content website, I'm trying to get the breadcrumbs of the current page.
The breadcrumbs is consisted of 4 classes named : '.breadcrumbs-link'
To do so, I wrote this code, using scrapy-splash:
import scrapy
from scrapy_splash import SplashRequest
class MySpider(scrapy.Spider):
name = "quotes4"
start_urls = ["https://www.woolworths.com.au/shop/browse/drinks/cordials-juices-iced-teas/iced-teas"]
def start_requests(self):
for url in self.start_urls:
yield SplashRequest(url=url, callback=self.parse, endpoint='render.html',args= {'wait': 10})
def parse(self, response):
print ('Result:')
print(len(response.css('.breadcrumbs-link').extract())) # OUTPUT: 0
print(response.css('.breadcrumbs-link').extract()) # OUTPUT: []
What could be wrong about my approach ?

