Every website handles privacy requests differently. Finding the correct contact method often takes longer than the request itself.
exitlight is a CLI tool that helps you find the right contact information to reach a website about your personal data (DSAR - Data Subject Access Request).
A common use case is exercising your data protection rights, such as requesting account deletion. Once you identify the appropriate contact email, you can manually send your data-related requests.
Given a website URL, it:
- discovers candidate links likely to be a Privacy Policy page
- visits those candidates (using a headless browser)
- extracts privacy-related contact methods (for now: email addresses)
- outputs a report you can use to contact the website about your personal data (JSON by default, or a plain-text email list)
- Finds and ranks privacy-policy candidates from the source page.
- Extracts emails from both page text and
mailto:links. - Produces a structured JSON report with per-candidate results and a consolidated email list.
- Batch mode: process a file of URLs (one per line).
- Respects
robots.txtby default (can be disabled for manual testing). - Applies a fixed delay between page visits to reduce server load (
--delay). - Blocks images/media/fonts to reduce load (
--no-resources-blockto disable). - Uses a custom transparent default User-Agent with a CLI override (
--user-agent).
Requires Python 3.10+.
pip install exitlightInstall Playwright browser binaries (required on first install):
playwright installShow all options:
exitlight --helpScan a single site and print the full JSON report:
exitlight example.comPrint only the consolidated email list (one per line):
exitlight example.com --format plainWrite JSON output to a file:
exitlight example.com --output report.jsonBatch mode (one URL per line):
exitlight urls.txt --output batch.jsonNotes:
exitlightrespectsrobots.txtby default; use--ignore-robotsfor manual testing only.- If you need a different request identity, override the User-Agent via
--user-agent. - Batch mode is intended for small, user-curated lists of websites.
{
"input_url": "example.com",
"source_url": "https://example.com",
"final_url": "https://www.example.com/",
"candidates": [
{
"url": "https://example.com/privacy",
"source": "Privacy Policy",
"score": 42,
"emails": ["dpo@example.com", "privacy@example.com"]
},
{
"url": "https://example.com/legal/privacy-notice",
"source": "Privacy Notice",
"score": 27,
"emails": ["info@example.com"]
}
],
"emails": [
{
"email": "dpo@example.com",
"candidate_urls": "https://example.com/privacy"
},
{
"email": "info@example.com",
"candidate_urls": "https://example.com/legal/privacy-notice"
},
{
"email": "privacy@example.com",
"candidate_urls": "https://example.com/privacy"
}
],
"stats": {
"candidate_count": 2,
"email_count": 3
}
}dpo@example.com
info@example.com
privacy@example.com
This project is provided for educational and personal use purposes.
The author does not take responsibility for how this software is used.
Users are solely responsible for ensuring that their use of this tool
complies with applicable laws, website Terms of Service, and robots.txt policies.
This tool accesses only publicly available pages and does not attempt to bypass authentication, paywalls, or anti-bot protections.
MIT. See LICENSE.