ParseHub DSL is a compiler and Playwright runtime for declarative browser extraction programs.
Programs use the .ph extension and are compiled through parsing, name resolution, type
checking, and verified IR before execution.
python -m pip install -e .
playwright install chromiumparsehub run example_simple.phValidate or format a program without running a browser:
parsehub check example_simple.ph
parsehub fmt example_simple.ph --check
parsehub fmt example_simple.ph --writeRun with parameters and persist the collected rows:
parsehub run examples/parameter_demo.ph \
--param query="browser automation" \
--param max_results=5 \
--output json \
--output-file results.json- Documentation index
- DSL syntax reference
- Capabilities
- Parameters
- Profiles, sessions, and environments
- Runtime artifacts
- Support policy
- Testing
- Encoding
- Example usage guide
- Minimal extraction
- Parameters
- Interaction and scrolling
- Template data flow
- Runtime authority surface
The complete supported example inventory is listed in the example usage guide.
MIT. See LICENSE.