Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow html_form_submit() *without* submit button #439

Open
netique opened this issue Feb 8, 2025 · 0 comments
Open

Allow html_form_submit() *without* submit button #439

netique opened this issue Feb 8, 2025 · 0 comments

Comments

@netique
Copy link

netique commented Feb 8, 2025

Some old ASPX sites provide forms without a submission button, and POST/GET requests are made when the form field changes. As I can see in rvest:::submission_find_submit(), when there is no button, HTTP request is based just on the fields, which is what I would expect. However, if there is completely unrelated button somewhere in the website, it gets selected and used as a part of the form. I would like to see something like html_form_submit(submit = NA) that completely avoids the button search quest. To see this in the wild, navigate to https://vysledky.cermat.cz/statistika/, where there is a cookie bar with a button that gets entangled with the form. I know I can simply remove the interfering button from the DOM, but I guess it would be a whole lot easier with the change in {rvest} API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant