1

If I had a html and png returned from a scrapy-splash request, how to I use that html to scrape an element while also using the png to save a png image?

Do I write response.html and response.png?

Gallaecio
  • 3,620
  • 2
  • 25
  • 64
ta_duke
  • 49
  • 1
  • 8

1 Answers1

0

SplashJsonResponse is returned when the result is a JSON object. In your case, to access png image you can use response.data['png']