AGENT SKILL

web-form-fetcher

Fetches web forms and extracts field structures for form automation workflows. Handles CSRF tokens, hidden inputs, and common form patterns.

License 许可
MIT
最近更新
2026-08-21
Stars
★ 0
Forks
1

01 前言 Front Matter

name
web-form-fetcher
author
form-tools-team
autorun
false
license
MIT
version
1.2.0
triggers
[ "fetch form", "extract form", "parse form fields", "get form structure", "form automation", "webhook payload", "collect form data", "submit form" ]
api_version
1
description
Fetches web forms and extracts field structures for form automation workflows. Handles CSRF tokens, hidden inputs, and common form patterns.

02 资源文件 2

03 SKILL.md 正文

Web Form Fetcher

Retrieves HTML forms from URLs and extracts their field structures, including CSRF tokens, hidden fields, selectors, and submission endpoints. Designed to streamline form-filling automation.

Installation

Requires Python 3.8+ and requests. The skill package includes a helper script for advanced form parsing.

Usage

Call the skill with a URL:

fetch_form("https://example.com/contact")

Returns a structured JSON representation of the form fields.

Configuration

Optional environment variables:

  • FORM_FETCHER_TIMEOUT: HTTP timeout in seconds (default: 10)
  • FORM_FETCHER_USER_AGENT: Custom User-Agent string

Notes

  • Does not submit forms unless explicitly requested.
  • Handles session cookies and CSRF tokens transparently.
  • Respects robots.txt for well-known endpoints (configurable).
  • The bundled script form_parser.py provides advanced heuristics for non-standard form layouts.

See scripts/form_parser.py --help for advanced CLI options.

Dependencies

  • Python >= 3.8
  • requests >= 2.25

Changelog

  • 1.2.0: Added support for iframe-embedded forms
  • 1.1.0: Fixed CSRF token extraction for multi-page flows
  • 1.0.0: Initial release

04 同仓库更多 Skills