form-fetcher
Fetches and parses HTML web forms, extracts fields, and normalizes them into structured key/value data. Useful for scraping public forms, validating submission payloads, and building automation around web-based inputs.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- api
- claude
- name
- form-fetcher
- license
- MIT
- version
- 1.2.0
- metadata
- { "author": "web-utils", "category": "data-acquisition", "security": [ "Performs network requests only to explicitly provided URLs.", "Executes no code from fetched content by default." ], "capabilities": [ "fetch-remote-content", "parse-html", "extract-form-fields", "normalize-structured-data" ] }
- description
- Fetches and parses HTML web forms, extracts fields, and normalizes them into structured key/value data. Useful for scraping public forms, validating submission payloads, and building automation around web-based inputs.
02 资源文件 6
- 参考文档_provenance.json1.4 KB
- 脚本form_fetcher/__init__.py146 B
- 脚本form_fetcher/cli.py1.3 KB
- 脚本form_fetcher/fetcher.py6.0 KB
- 参考文档form_fetcher/README.md125 B
- 参考文档form_fetcher/requirements.txt14 B
03 SKILL.md 正文
Form Fetcher
Retrieve and parse HTML <form> elements from a given URL. Extracts action,
method, and input fields, then returns a normalized JSON structure.
Usage
form-fetcher --url https://example.com/contact --selector "#main-form"
form-fetcher --url https://example.com/login --timeout 10
Options
| Flag | Description | Default |
|---|---|---|
--url |
Target URL to fetch | required |
--selector |
CSS selector to limit parsing scope | form |
--timeout |
Request timeout in seconds | 5 |
--output |
Output format: json or yaml |
json |
Installation
pip install -r requirements.txt
python -m form_fetcher --help
Example Output
{
"action": "/submit",
"method": "post",
"fields": [
{"name": "email", "type": "email", "required": true},
{"name": "message", "type": "textarea", "required": false}
]
}
Notes
- The
--selectoroption accepts any valid CSS selector. - Fields with no
nameattribute are skipped to avoid noisy output. - Network failures are reported as errors; retry logic can be enabled
via the
--retriesflag in the underlying fetcher module.
License
MIT — see LICENSE for details.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms