diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2018-09-13 16:48:19 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2018-09-13 16:48:19 -0400 |
| commit | 556e84616731934ba1814a3f5cf770d57f1fcbb0 (patch) | |
| tree | 9edd45a07c14a5331ef6f0781e1e6fed7d44fb38 | |
| parent | 07d18d03d2f2eb8bd4bb4df844ce2e16e7e581d1 (diff) | |
| download | pyisda-556e84616731934ba1814a3f5cf770d57f1fcbb0.tar.gz | |
switch to POST requests
| -rw-r--r-- | pyisda/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyisda/utils.py b/pyisda/utils.py index 24a2e4b..a3c5456 100644 --- a/pyisda/utils.py +++ b/pyisda/utils.py @@ -19,7 +19,7 @@ from pyisda.date import BadDay def getMarkitIRData(date = datetime.date.today() - datetime.timedelta(days = 1), currency="USD"): filename = "InterestRates_{0}_{1:%Y%m%d}".format(currency, date) - r = requests.get('http://www.markit.com/news/{0}.zip'.format(filename)) + r = requests.post('http://www.markit.com/news/{0}.zip'.format(filename)) if "zip" in r.headers['content-type']: with zipfile.ZipFile(BytesIO(r.content)) as z: fh = z.open(filename + '.xml') |
