Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungWhy Claude Code keeps writing shell commands that fail on your Mac(20.09.2026 um 21:06 Uhr)
Sichere Programmierungllms.txt v2: What the Spec Says, and What 137,000 Domains Show(20.09.2026 um 21:17 Uhr)
Sicherheitslücken (CVE)NiceTryGPT: Less pattern matching. More actual hacking.(20.09.2026 um 21:19 Uhr)
IT Security VideoActivities BoF (kde2026)(20.09.2026 um 00:00 Uhr)
IT Security Toolsirdoc-app(20.09.2026 um 20:33 Uhr)
Sichere ProgrammierungWhy Claude Code keeps writing shell commands that fail on your Mac(20.09.2026 um 21:06 Uhr)
Sichere Programmierungllms.txt v2: What the Spec Says, and What 137,000 Domains Show(20.09.2026 um 21:17 Uhr)
Sicherheitslücken (CVE)NiceTryGPT: Less pattern matching. More actual hacking.(20.09.2026 um 21:19 Uhr)
IT Security VideoActivities BoF (kde2026)(20.09.2026 um 00:00 Uhr)
IT Security Toolsirdoc-app(20.09.2026 um 20:33 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

How to Monitor Website Changes Automatically (Visual Diff Tutorial)

Reagiere als Erste:r — dein Feedback zählt!

How to Monitor Website Changes Automatically

I run a few websites and need to know immediately when something breaks. A CSS regression, a broken layout, a missing section. Manual checking doesn't scale, and text-based monitoring misses visual issues.

The {{screenshot-diff}} on Apify takes two screenshots and produces a pixel-level comparison with an overlay showing exactly what changed.

How It Works

Take a baseline screenshot of the correct state. Then take a current screenshot of the live page. The actor compares pixel by pixel and returns a diff image with changed pixels highlighted, plus a percentage telling you how much changed.

import requests, time

API_TOKEN = "YOUR_APIFY_TOKEN"

def capture_screenshot(url):
    resp = requests.post(
        "https://api.apify.com/v2/acts/weeknds~website-screenshot-api/runs",
        headers={"Authorization": f"Bearer {API_TOKEN}"},
        json={"url": url, "fullPage": True}
    )
    run_id = resp.json()["data"]["id"]
    time.sleep(15)
    items = requests.get(
        f"https://api.apify.com/v2/acts/weeknds~website-screenshot-api/runs/{run_id}/dataset/items",
        headers={"Authorization": f"Bearer {API_TOKEN}"}
    ).json()
    return items[0]["screenshotUrl"]

def compare_screenshots(baseline_url, current_url):
    resp = requests.post(
        "https://api.apify.com/v2/acts/weeknds~screenshot-comparison-tool/runs",
        headers={"Authorization": f"Bearer {API_TOKEN}"},
        json={
            "baselineImageUrl": baseline_url,
            "currentImageUrl": current_url,
            "threshold": 0.01
        }
    )
    run_id = resp.json()["data"]["id"]
    time.sleep(10)
    items = requests.get(
        f"https://api.apify.com/v2/acts/weeknds~screenshot-comparison-tool/runs/{run_id}/dataset/items",
        headers={"Authorization": f"Bearer {API_TOKEN}"}
    ).json()
    return items[0]

baseline = capture_screenshot("https://mysite.com")
current = capture_screenshot("https://mysite.com")
result = compare_screenshots(baseline, current)

print(f"Difference: {result['diffPercentage']:.2f}%")
print(f"Diff image: {result['diffImageUrl']}")

if result['diffPercentage'] > 5:
    send_alert("Website changed significantly!")

Real Uses

Deployment Verification

After every deploy, diff staging against production. If anything changed more than 2%, the deploy gets flagged before customers notice.

def verify_deploy(staging_url, production_url):
    staging_shot = capture_screenshot(staging_url)
    prod_shot = capture_screenshot(production_url)
    result = compare_screenshots(prod_shot, staging_shot)

    if result['diffPercentage'] > 2.0:
        print(f"Regression: {result['diffPercentage']:.1f}% changed")
        print(f"Diff: {result['diffImageUrl']}")
        sys.exit(1)
    else:
        print(f"Clean: {result['diffPercentage']:.1f}%")

Competitor Monitoring

Track when competitors update their landing pages. Screenshot their site daily, diff against yesterday. Silent changes become visible.

CI/CD Pipeline

Add visual regression testing to GitHub Actions. On every deployment, screenshot the live site and compare against the pre-deploy baseline. Block the deploy if visual changes exceed threshold.

What You Can Configure

baselineImageUrl and currentImageUrl are required — just point them at your screenshots.

threshold controls sensitivity. At 0.0, every single pixel difference counts. At 0.01, the actor ignores minor anti-aliasing artifacts that don't actually matter.

What It Costs

$0.005 per comparison. With the screenshot API at $0.003 per screenshot, a full compare costs about $0.011 — two screenshots plus one diff. Running 100 comparisons a day costs around $1.10. Way cheaper than any commercial visual regression service.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to Monitor Website Changes Automatically (Visual Diff Tutorial)

Thematisch verwandte Begriffe: Monitor, Website, Changes, Automatically · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-93956 | A flaw has been found in olivier-ls PHP-FTS up to 1.1.2. Affected by thi…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick