I have searched through all mechanicalsoup & beautifulsoup documentation but can\'t figure out how to set the value of a form element using \'id\' (because it doesn\'t h
Without a name
attribute, the input will be quite useless when submitting the form, since the form data will be computed based on this name
attribute. Most likely this input will be used by JavaScript, not by form submission, and MechanicalSoup won't help you with JavaScript. See:
https://mechanicalsoup.readthedocs.io/en/stable/faq.html#form-submission-has-no-effect-or-fails
In short: you probably want to use Selenium instead.
After more research, I learned I should be using Selenium for this case (not mechanicalsoup). I used this guide which did exactly what I needed on the first try.
http://stanford.edu/~mgorkove/cgi-bin/rpython_tutorials/Scraping_a_Webpage_Rendered_by_Javascript_Using_Python.php