connect
- gwdatafind.connect(host=None, port=None)
Open a new connection to a Datafind server
This method will auto-select between HTTP and HTTPS based on port, and (for HTTPS) will automatically load the necessary X509 credentials using
gwdatafind.utils.find_credential()
.- Parameters
- Returns
connection (
gwdatafind.HTTPConnection
orgwdatafind.HTTPSConnection
) – a newly opened connection