Login to website using python

Hello Team,

I want to extract data from website, which needs to login 2 times.

  1. with User name and password
  2. again it will ask to login with one time password

this will ask every first time when use to open the website on the browser.

Can any one please help me with Python code for the above requirement.

Thank you in advance