data = urllib.parse.urlencode({'lookupPage': 'lookup_yield_curve.php',
    'startRange': '1986-01-01', 'searchRange': 'all'})
request = urllib.request.Request(my_url, data)
result = urllib.request.urlopen(request)
zipdata = result.read()
zipfile = ZipFile(StringIO(zipdata))
print('zipfile.namelist(): {}'.format(zipfile.namelist()))
Attribute Error when extracting data from a URL with a zip file