class documentation

class BrowserLikeContextFactory(ScrapyClientContextFactory): (source)

View In Hierarchy

Twisted-recommended context factory for web clients. Quoting the documentation of the :class:`~twisted.web.client.Agent` class: The default is to use a :class:`~twisted.web.client.BrowserLikePolicyForHTTPS`, so unless you have special requirements you can leave this as-is. :meth:`creatorForNetloc` is the same as :class:`~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 tls_ciphers Undocumented
Instance Variable tls_verbose_logging Undocumented
Instance Variable _ssl_method Undocumented
def creatorForNetloc(self, hostname, port): (source)