class documentation

class BrowserLikeContextFactory(ScrapyClientContextFactory):

View In Hierarchy

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 creator​For​Netloc Undocumented

Inherited from ScrapyClientContextFactory:

Class Method from​_settings Undocumented
Method __init__ Undocumented
Method get​Certificate​Options Undocumented
Method get​Context Undocumented
Instance Variable ​_ssl​_method Undocumented
Instance Variable tls​_ciphers Undocumented
Instance Variable tls​_verbose​_logging Undocumented
def creatorForNetloc(self, hostname, port):