title: How do I go about two factor authentication using requests library?
body: <p>I have a post and a get request to a website that uses 2FA (DUO mobile). When I execute the code, I get a push notification on my phone asking me to accept or reject the request for a login. I don't know what to do after I've done this much. I know how 2FA works but I'm new to requests and stuff.</p>
  
  <pre><code>    url = "https://www.something.edu/apps/account/cas/login?service=https%3A%2F%2Frf.something.something.edu"
      r = session.get(url, headers = headers)
  
  
      soup = BeautifulSoup(r.content, 'html5lib')
      login_data['lt'] = soup.find('input', attrs={'name' : 'lt' })['value']
      r = session.post(url, data = login_data, headers = headers, )
      print(r.content)```
  
  It does not print anything and the program keeps running
  </code></pre>