Parsers
Falcon uses hQuery for parsing HTML documents and you can use hQuery methods inside the custom parser. e.g. $document->find('a').
Custom Parsers
Creating your own parsers
$falcon = Falcon::getInstance();
$falcon->addParser("myCustomParser", fn ($document) => MyParser($document));
function MyParser($document) {
// your custom logic here
}
// or
$falcon->addParser("myCustomParser", function($document) {
// your custom logic here
});
// result from your parser
$falcon->parse("myCustomParser")->results()["myCustomParser"];