This first came about because there was a problem with NRCS TLS
certificates (possibly due to the expiry of the 'AddTrust' root cert).
This caused me to examine whether privacy is even necessary of these
requests. We're requesting public data for integration into a private
system. Thus, privacy is preferred, but not necessary. And therefore, a
correct TLS chain is preferred, but not necessary.
import os
import sys
import time
import os
import sys
import time
import importlib.util
from ftplib import FTP
import importlib.util
from ftplib import FTP
LOG = logging.getLogger(__name__)
LOG.setLevel(logging.NOTSET)
LOG = logging.getLogger(__name__)
LOG.setLevel(logging.NOTSET)
+urllib3.disable_warnings()
+
def get_parser():
"""Return OptionParser for this program"""
parser = ArgumentParser()
def get_parser():
"""Return OptionParser for this program"""
parser = ArgumentParser()
def get_nrcs_data(begin, end, station):
"""get the data we're after from the NRCS WSDL"""
transport = zeep.transports.Transport(cache=zeep.cache.SqliteCache())
def get_nrcs_data(begin, end, station):
"""get the data we're after from the NRCS WSDL"""
transport = zeep.transports.Transport(cache=zeep.cache.SqliteCache())
+ transport.session.verify = False
client = zeep.Client(wsdl=station['source'], transport=transport)
remote_data = {}
client = zeep.Client(wsdl=station['source'], transport=transport)
remote_data = {}