title: Python Requests: Accepting a TOS before accessing a page
body: <p>I am a newbie trying to write a python script to scrape some information from a website. I need to get to the search page of the website, but on a new session it will redirect you to a TOS acceptance page. You click yes or no to accept, and then it will move you to the search page. Here is my code:</p>
  
  <pre><code>import requests
  
  s=requests.Session()
  page = s.get("http://probate.cuyahogacounty.us/pa/CaseSearch.aspx")
  if ('TOS.aspx' in page.url):
      print("Attempt to agree to TOS")
      yesBtn={'ctl00$mpContentPH$btnYes': 'Yes'}
      r=s.post(page.url, data=yesBtn)
      r2=s.get("http://probate.cuyahogacounty.us/pa/CaseSearch.aspx")
      print (r.url)
      print (r2.url)
  </code></pre>
  
  <p>Both r and r2 kick me back to the TOS URL. Help!!</p>