Skip to main content

Privacy nutrition label for any website. One command: scan, score, compare.

Project description

privacy-label

Privacy nutrition label for any website. One command.

pip install privacy-label
privacy-label reddit.com

What it does

Scans any website and generates a privacy nutrition label showing:

  • Trackers — ad networks, analytics, fingerprinting, social widgets
  • Data collection — form fields, API access, browser fingerprinting
  • Cookies — tracking cookies detected on first visit
  • Third parties — how many external domains your data goes to
  • Security — HTTPS, security headers, privacy policy, cookie banner
  • Score — 0-100 privacy score with A+ to F grade

Usage

# Scan one site
privacy-label reddit.com

# Compare multiple sites
privacy-label reddit.com twitter.com github.com

# Explicit compare mode
privacy-label --compare reddit.com discord.com

Example output

reddit.com — Privacy Nutrition Label
============================================================

  Privacy Score: 42/100 (C)
  ████████░░░░░░░░░░░░

┌─────────────────── Trackers Found ───────────────────┐
│ Type │ Name              │ Category    │ Via         │
│ AD   │ Google Ads         │ advertising │ script     │
│ AD   │ Facebook Pixel     │ advertising │ inline     │
│ AN   │ Google Analytics   │ analytics   │ script     │
│ AN   │ Segment            │ analytics   │ script     │
│ MK   │ HubSpot            │ marketing   │ script     │
└──────────────────────────────────────────────────────┘

  Third-Party Domains: 14
  HTTPS: Yes
  Privacy Policy: Found
  Cookie Banner: Yes
  DNT Respected: No
  Security Headers: 4/6

╭─── Verdict ───╮
│ This site collects significant data about you.       │
│ 5 trackers, 14 third parties, 2 ad networks.        │
╰───────────────╯

Compare sites

privacy-label reddit.com github.com duckduckgo.com

Shows a side-by-side table with scores, tracker counts, and the winner.

What it checks

Check What Impact
Ad trackers Google Ads, Facebook Pixel, Criteo, etc. -8 per tracker
Fingerprinting FingerprintJS, canvas, WebGL, audio -10 per script
Marketing HubSpot, Drift, etc. -5 per tracker
Analytics GA, Mixpanel, Amplitude, etc. -3 per tracker
Tracking cookies _ga, _fbp, IDE, etc. -3 per cookie
Third-party domains External requests -3 to -15
Data collection Forms, APIs, storage -1 to -4
Bonuses Privacy policy, cookie banner, security headers +2 to +5

Limitations

  • Static HTML analysis only — doesn't execute JavaScript (use a browser extension for full JS tracking)
  • Cookie detection is first-party response only — doesn't capture third-party cookies set by scripts
  • Scores are relative, not absolute — useful for comparing sites, not as legal compliance

Privacy

This tool runs locally. No data is sent anywhere except to the website you're scanning. No telemetry.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

privacy_label-0.2.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

privacy_label-0.2.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file privacy_label-0.2.0.tar.gz.

File metadata

  • Download URL: privacy_label-0.2.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.10

File hashes

Hashes for privacy_label-0.2.0.tar.gz
Algorithm Hash digest
SHA256 624515b83fac51546e7bf11bb27a9dd6e22e303fc1fd976b7f06fa0c2f0e0ce1
MD5 da071e20c4c3f4212eb3eaac05adbb00
BLAKE2b-256 1ae79ad197fec9b13e0a2b7d64e9d7f5dc516accee0d6d75d70a7b0bc688d44a

See more details on using hashes here.

File details

Details for the file privacy_label-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: privacy_label-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.10

File hashes

Hashes for privacy_label-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03af258a260ea600502bab226839c319199401f070c1b1ff80f0eedde1f7493a
MD5 22e8bbb989bdf74a28905ed87a273359
BLAKE2b-256 460a4f8591336c7f2d6ab45d12e37ed31873100ce7e6ac1a3ddc6d32549de879

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page