NAME

WWW::Crawl4AI::Strategy::Callback - last-resort Crawl4AI strategy delegating to a user coderef

VERSION

version 0.001

DESCRIPTION

The final link, only present when the crawler was given a callback coderef. When every Crawl4AI-backed strategy has failed, the URL is handed to that coderef as ->($url, %opts); it should return a page-shaped hashref (markdown, html, status_code, title, ...) or undef. This is the hook for paid scraping APIs or any external escalation you control.

markdown may be a plain string or the structured object Crawl4AI itself returns ({ raw_markdown => ..., fit_markdown => ... }); either is accepted. links, if present, is expected in the { internal => [...], external => [...] } shape.

name

external_callback.

cost_class

paid.

applicable

True only when $crawler->callback is set.

crawl

Calls the user coderef and normalizes its return value into a page.

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-crawl4ai/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de> https://raudss.us/

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.