MechanicalSoup action difficulty with forms

2019-07-26 19:35发布

问题:

First, I am French so if there are mistakes in my english I'm sorry. So here is my problem, I have hard time with mechanicalsoup. So here is my HTML page:

<form class="XFYOY" method="post"><h2 class="vvzhL ">Inscrivez-vous pour voir les photos et vidéos de vos amis.</h2> 

Here are just the first line. I want to create an automatic form but there is not action and I don't know what to put in browser.select_form():

browser.select_form('form[action=/post]')
browser["emailOrPhone"] = "0689754327"
browser["fullName"] = "Jean"

What I put is not working because the form I have don't have a action. What can I do ?

Thx, Lazare