SHARE
TWEET

Untitled

a guest Jan 17th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests_html, datetime
  2. url = 'https://www.cmegroup.com/trading/interest-rates/stir/eurodollar_quotes_settlements_futures.html'
  3. session = requests_html.HTMLSession()
  4. r = session.get(url)
  5. r.html.render() # To call the java script to retrieve the data
  6. print(r.html.html)
  7.    
  8. ...
  9. session = rquests_html.HTMLSession()  
  10. data = {'tradeDate':'01/16/2019'}
  11. r = session.get(url, params=data)
  12. ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top