-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make certificates from original web request response available in SplashRequest #289
Comments
@ned2 I think the first step would be to make sure that information you need is available in the splash response - either you can fish it from har (see https://splash.readthedocs.io/en/stable/api.html#render-json har option) or you'll need to write a custom lua script (see https://github.com/scrapy-plugins/scrapy-splash#examples and splash docs) and get this information from splash. As I understand, the information returned from splash would be available in |
I'd like to be able to include the status of whether the response to the URL being scraped used SSL or not. The challenge is that inside the
parse
method of theSplashResponse
theresponse.certificates
attribute is populated by the SSL details of the Splash response, rather than from the original scraped URL response.My understanding is that the
magic_response=True
param causesbody
,url
andhttp_method
attributes of the response object to be set to the values from the scraped URL response.Is there currently a way to access the
certificates
attribute from the scraped URL response? Or would this need to be an extension of themagic_response
functionality?The text was updated successfully, but these errors were encountered: