Reputation: 95
I'm trying to scrape data from https://www.grailed.com/ using the Scrapy framework in Python, but when I'm in the
scrapy shell
and trying to learn how to extract the data, with
response.css("my css path")
or
response.xpath("my xpath")
I always get empty lists. Then, when I fetch and view the response in the shell for https://www.grailed.com, I get an almost blank page that does not contain the data that I would like to scrape (items, price, etc). In this case, would Scrapy still work for my purposes? If not, are there any alternatives? Thanks!
Upvotes: 0
Views: 1753
Reputation: 1109
This site loads content using JS. Scrapy does not support JS. That is why you see empty html template without data itself. Possible solutions:
Upvotes: 2