class BrowserLikeContextFactory(ScrapyClientContextFactory):
Twisted-recommended context factory for web clients.
Quoting the documentation of the ~twisted.web.client.Agent
class:
The default is to use a
~twisted.web.client.BrowserLikePolicyForHTTPS
, so unless you
have special requirements you can leave this as-is.
creatorForNetloc
is the same as
~twisted.web.client.BrowserLikePolicyForHTTPS
except this context
factory allows setting the TLS/SSL method to use.
The default OpenSSL method is TLS_METHOD (also called SSLv23_METHOD) which allows TLS protocol negotiation.
Method | creatorForNetloc |
Undocumented |
Inherited from ScrapyClientContextFactory
:
Class Method | from_settings |
Undocumented |
Method | __init__ |
Undocumented |
Method | getCertificateOptions |
Undocumented |
Method | getContext |
Undocumented |
Instance Variable | _ssl_method |
Undocumented |
Instance Variable | tls_ciphers |
Undocumented |
Instance Variable | tls_verbose_logging |
Undocumented |