0

I have spent two days trying to figure out what's wrong. I have consulted this: Python - Login and download specific file from website and that: How can I login to a website with Python?. But, I am not going anywhere.

I need to download CME group's daily market data for five years. An automation would help immensely. However, my script seems to freeze. Here is my code:

import requests
payload={'user':'email','password':'pass'}
s=requests.Session()
s.get('https://login.cmegroup.com/sso/accountstatus/showAuth.action')
s.post('https://login.cmegroup.com/sso/accountstatus/showAuth.action', data=payload)
s.get('https://www.cmegroup.com/ftp/span/archive/cme/2018/cme.20180102.c.pa2.zip')

Freezing happens in the last line. Anybody willing to help? Please.

m4n0
  • 27,411
  • 26
  • 71
  • 84
bonbon
  • 5

0 Answers0