Export Maigret Reports in Multiple Formats
Maigret renders reports client-side, so you can request any combination during a single scan.
Command example
maigret username --html --pdf --json --csv --output ./reports --folderoutputResulting files land in ./reports/username/:
username.htmlusername.pdfusername.jsonusername.csv
Automating with cron
0 2 * * * /usr/local/bin/maigret userlist.txt \
--input usernames.txt \
--html --pdf --json \
--output /var/reports --folderoutput >> /var/log/maigret.log 2>&1Python API snippet
from pathlib import Path
from maigret import maigret_api
reports_dir = Path("reports")
results = maigret_api.search_username("username", report_types=["html", "pdf", "json"])
for artifact in results.artifacts:
artifact.save(reports_dir)Quality checks
- Use
--no-colorto make terminal logs machine-parsable. - Pair with
maigret --print-not-foundto reduce clutter before archiving. - Validate PDFs with
pdfinfo reports/user.pdfin CI.
Multi-format exports are ideal when stakeholders want human-readable HTML plus machine-readable JSON for pipeline ingestion.