Is there a way to save Scrapy response screenshot of page, I.e
scrapy shell "https://google.com"
view(response)
I know I can save the output as HTML and view it later, but is there a way to save the output as image?
I checked this Question Scrapy Splash Screenshots?, (the most relevant one) but I get
png_bytes = base64.b64decode(response.data['png'])
Traceback (most recent call last):
File "/usr/lib/python3.6/code.py", line 91, in runcode
exec(code, self.locals)
File "<console>", line 1, in <module>
AttributeError: 'HtmlResponse' object has no attribute 'data'
I assume this error is because in Question he uses Splash Request
,in my case normal Request