Scraping a JSON javascript response with a Scrapy Spider
In this video I help a subscriber who was getting "None" with his selectors.
I modified the Python/Scrapy code to get the elements he needed using:
json.loads(response.xpath('//script[@type="application/ld+json"]//text()')
reference:
#scrapy #selectors #xpath #css #python
Download/Clone my code at :
⚠ Disclaimer : Any code provided in this tutorial is for educational use only, I am not responsible for what you do with it. ⚠
See you around yeah?
Dr Pi.