How to Extract and Verify Open Graph Preview Images
Read the right og:image tags, keep each candidate’s own metadata, and check the image file before using it in a link preview.
AnyCrawler guides
Learn how to find web sources, extract readable content, and handle JavaScript pages in AI workflows. Browse guides by topic and choose the next task you need to solve.
Published guides
40 guides
Read the right og:image tags, keep each candidate’s own metadata, and check the image file before using it in a link preview.
Check whether a successful response contains the document you expected. Compare a live page and a missing-page control before indexing their text.
Compare documentation HTML with converted Markdown to verify that code keeps its indentation, line boundaries, and source location.
Inspect the final response's media type, choose an HTML, JSON, PDF or plain-text path, and keep missing or ambiguous declarations unresolved. Includes tested Python routing and a real AnyCrawler HTML preview.
Collect publication-date signals without confusing updates, response headers or retrieval time with first publication. Includes tested Python, a live one-page example and explicit unknown/conflict states.
Read the Content-Language header and the document lang attribute as two separate claims, keep disagreements as conflicts, and record unknown instead of defaulting to English. Includes a tested parser and the alternate-set checks that actually hold.
Use a public sitemap index to find candidate URLs, filter scope and duplicates, then verify a selected page with a real read. Includes tested code and a practical evidence record.
Inventory embedded JSON-LD with a tested Python example, select the right entity, and check extracted fields against readable page evidence.
Check a page's robots rules for the actual crawler identity before an agent reads it. Use an explicit allow, deny, or defer decision and preserve the evidence across redirects and failed rule requests.