Python google BeautifulSoup login

Python google BeautifulSoup login
0
#1

Greetings,

google login and I want to fill out a form with the session opened BeautifulSoup and I’m trying to progress with requests google login login email a way forward a password in the form of a post I do not know how to create the post part of the gmail email screen I can now pour parameters I can get more how can I bring?

note: I’m already doing webdriver selenium with the browser I’m hiding but never something beautifulSoup, health and nice enough to request so I need to know it thanks



from bs4 import BeautifulSoup
import json, requests

headers = {

    'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1'
}


url = "https://www.google.com/accounts/Login?hl=tr&continue=http://www.google.com"

login_data = {

    'id': '[email protected]',
}

url = "https://accounts.google.com/ServiceLogin?elo=1"
with requests.Session() as s:
    soup = BeautifulSoup(s.get(url).text, "html.parser")

    r = s.post(url,headers=headers)

print(r.content)


id="identifierId"

data-initial-value