As a bot, I already checked some sites, such as pajamas and scrapy, I know how to print website data, but still do not know how to interact with buttons. Can someone help me with some demo code?
Let's say I have a form
<form name="input" action="html_form_action.asp" method="get"> Username: <input type="text" name="user" /> <input type="submit" value="Submit" /> </form>
how can i identify the button that needs to be clicked so that python can click it for me? If anyone knows any sites with demo code, I would be very pleased.
source share