I am trying to log into the Draftkings sportsbook using Mechanicalsoup. This is due to a friend's suggestion, but not sure if mechanicalsoup will work for me. The log in page does not seem to be a form but rather 2 input fields with a button to do the work.
The inspect of the page is shown below: inspect of draftkings log in page
I was wondering if I need to use selenium for this project.
If there is no form element on the page, then it is using JavaScript and MechanicalSoup may not be the best choice, because it doesn't handle JavaScript. See https://mechanicalsoup.readthedocs.io/en/stable/faq.html#form-submission-has-no-effect-or-fails.