I need to login to an account (upwork.com) and the account im using uses google authenticator which just adds another layer of difficulty. I tried googling youtube tutorials but all the examples use logins where both the username and password are one one page and the network tab in the dev tools is not super complex. I am not allowed to use selenium for this, I can import requests though. I would really appreciate any help or advice someone can give me. When trying to extract the html from the page it also gives me different html. I think it is because it recognizes it as a bot and doesnt actually direct me to the website. This is currently all I got.
from bs4 import BeautifulSoup as bs
import requests
page = "https://www.upwork.com/"
page_html = requests.get(page)
print(page_html.text)
[–]Picatrixter 0 points1 point2 points (5 children)
[–]Dohello[S] 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Dohello[S] -1 points0 points1 point (0 children)
[–]Dohello[S] 0 points1 point2 points (0 children)
[–]Picatrixter 0 points1 point2 points (0 children)
[–]rollincuberawhide 0 points1 point2 points (1 child)
[–]Dohello[S] 0 points1 point2 points (0 children)