Skip to content

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

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

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 3 times, most recently from cde4c09 to cfd9dde Compare September 30, 2026 15:37
@Mantisus Mantisus changed the title feat(http-crawlers): Add extract_form_requests helper for HTTP crawlers with HTML parsers feat(crawlers): Add extract_form_requests helper for HTTP crawlers with HTML parsers Oct 1, 2026
@Mantisus
Mantisus marked this pull request as ready for review October 1, 2026 10:52
@Mantisus
Mantisus requested review from Pijukatel and vdusek October 1, 2026 10:53

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