<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ozan Orhan</title>
    <description>The latest articles on DEV Community by Ozan Orhan (@ozanorhn).</description>
    <link>https://dev.to/ozanorhn</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4225753%2F8c1b8be3-87e7-4011-9473-788949fd9119.jpg</url>
      <title>DEV Community: Ozan Orhan</title>
      <link>https://dev.to/ozanorhn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ozanorhn"/>
    <language>en</language>
    <item>
      <title>Building AI Website Audits with Python: 5 Lessons About Reliability</title>
      <dc:creator>Ozan Orhan</dc:creator>
      <pubDate>Wed, 04 Nov 2026 08:50:09 +0000</pubDate>
      <link>https://dev.to/ozanorhn/building-ai-website-audits-with-python-5-lessons-about-reliability-35nj</link>
      <guid>https://dev.to/ozanorhn/building-ai-website-audits-with-python-5-lessons-about-reliability-35nj</guid>
      <description>&lt;p&gt;Building an automated website audit sounds straightforward: fetch a page, run checks, and generate a report.&lt;/p&gt;

&lt;p&gt;But creating an audit that developers can actually trust is a different challenge.&lt;/p&gt;

&lt;p&gt;While working with Python, FastAPI, Playwright, and automated website analysis, I’ve been exploring an important question:&lt;/p&gt;

&lt;p&gt;How do we distinguish a real website problem from something our audit simply couldn’t verify?&lt;/p&gt;

&lt;p&gt;Here are five engineering principles that make automated audits more reliable.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Separate failures from unknown results&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A common mistake is treating every unsuccessful check as a website failure.&lt;/p&gt;

&lt;p&gt;For example, a request timeout does not prove that a website is broken.&lt;/p&gt;

&lt;p&gt;An audit should distinguish between:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;pass: The requirement was verified.&lt;/li&gt;
&lt;li&gt;fail: Evidence confirms that the requirement is not met.&lt;/li&gt;
&lt;li&gt;not_tested: The audit could not complete the check.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This distinction prevents unreliable conclusions.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep deterministic checks deterministic&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Not everything needs an LLM.&lt;/p&gt;

&lt;p&gt;HTTP response codes, HTML elements, redirects, and response headers can be checked using conventional Python code.&lt;/p&gt;

&lt;p&gt;import requests&lt;br&gt;
def check_robots_txt(domain: str):&lt;br&gt;
    url = f"https://{domain}/robots.txt"&lt;br&gt;
    try:&lt;br&gt;
        response = requests.get(url, timeout=10)&lt;br&gt;
    except requests.RequestException:&lt;br&gt;
        return {"status": "not_tested"}&lt;br&gt;
    if response.status_code == 200:&lt;br&gt;
        return {"status": "pass"}&lt;br&gt;
    if response.status_code == 404:&lt;br&gt;
        return {"status": "fail"}&lt;br&gt;
    return {"status": "not_tested"}&lt;/p&gt;

&lt;p&gt;This example only checks whether robots.txt is accessible. It does not validate the file’s content.&lt;/p&gt;

&lt;p&gt;For subjective assessments, LLMs can help interpret evidence, but they should not invent missing observations.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Require evidence for every finding&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A useful finding should answer three questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What was checked?&lt;/li&gt;
&lt;li&gt;What was observed?&lt;/li&gt;
&lt;li&gt;Why does the observation justify the result?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of reporting:&lt;/p&gt;

&lt;p&gt;Your website is not AI-ready.&lt;/p&gt;

&lt;p&gt;An audit should identify a specific, verifiable condition and explain its relevance.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Test against unfamiliar websites&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A system can appear highly accurate when developers repeatedly test it against the same websites.&lt;/p&gt;

&lt;p&gt;This creates the risk of optimizing for known examples rather than general reliability.&lt;/p&gt;

&lt;p&gt;A better approach is to test against previously unseen websites, classify false positives, and document the results before changing the implementation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Treat uncertainty as an engineering feature&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A trustworthy audit does not need to produce an answer for every check.&lt;/p&gt;

&lt;p&gt;Sometimes the correct answer is:&lt;/p&gt;

&lt;p&gt;Not enough evidence to determine the result.&lt;/p&gt;

&lt;p&gt;That is more useful than a confident but unsupported warning.&lt;/p&gt;

&lt;p&gt;Final thoughts&lt;/p&gt;

&lt;p&gt;The challenge in AI-assisted auditing is not generating more findings.&lt;/p&gt;

&lt;p&gt;It is making sure those findings are reproducible, explainable, and supported by evidence.&lt;/p&gt;

&lt;p&gt;Reliable automation should make uncertainty visible rather than hide it behind a score.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;About the author&lt;/p&gt;

&lt;p&gt;I’m Ozan Orhan, an AI Automation Engineer based in Hannover, Germany. I work with Python, AI agents, APIs, RAG, MCP, and workflow automation.&lt;/p&gt;

&lt;p&gt;My technical projects and case studies: &lt;a href="https://ozan-orhan.com" rel="noopener noreferrer"&gt;ozan-orhan.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>webdev</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
