Skip to content

feat(http-crawlers): Add extract_form_requests helper for HTTP crawlers with HTML parsers - #2257

Draft
Mantisus wants to merge 1 commit into
apify:masterfrom
Mantisus:form-request
Draft

Mantisus wants to merge 1 commit into
apify:masterfrom
Mantisus:form-request

Conversation

@Mantisus

@Mantisus Mantisus commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • Adds extract_form_requests to ParselCrawlingContext and BeautifulSoupCrawlingContext. It reads a form from the page, fills in the given values and returns requests that submit it the way a browser does, keeping hidden fields such as CSRF tokens. By default, one form is submitted: the one sharing the most field names with fields. The selector, click and all_forms arguments pick the forms and the submit button.

Testing

  • Added new unit tests

@Mantisus Mantisus changed the title feat(crawlers): add form_requests helper for HTTP crawlers with HTML parsers feat(http-crawlers): add form_requests helper for HTTP crawlers with HTML parsers Sep 25, 2026
@Mantisus
Mantisus marked this pull request as draft September 25, 2026 19:06
@Mantisus Mantisus changed the title feat(http-crawlers): add form_requests helper for HTTP crawlers with HTML parsers feat(http-crawlers): Add extract_form_requests helper for HTTP crawlers with HTML parsers Sep 28, 2026
@Mantisus Mantisus self-assigned this Sep 29, 2026
@Mantisus
Mantisus force-pushed the form-request branch 2 times, most recently from 761128e to cde4c09 Compare September 30, 2026 15:22

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

2 participants