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

Not all form fields are included in the posting #1

Open
kalessin opened this issue Nov 14, 2012 · 1 comment
Open

Not all form fields are included in the posting #1

kalessin opened this issue Nov 14, 2012 · 1 comment

Comments

@kalessin
Copy link

In this login page, for example,

https://www.beyondtherack.com/auth/login

there is the submit button element with name _submit inside the login form, which is not being included in the posting, but it is required for the login to be successful (tested)

The problem is that the lxml method form.form_values() alone does not include all the involved fields in the form. Seems it only includes the input elements.

@pablohoffman
Copy link
Member

@kalessin check the code on scrapy.http.request.form, it has support for submitting values of clickable elements (which works like that by default unless dont_click is passed). You may be able to get some ideas from there to submit a PR to fix this.

There's a lot of code in that module though, probably much more than we need here, so only import strictly what you need.

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

2 participants