Skip to main content

No project description provided

Project description

Impressum Helvetica

Python Poetry Playwright

Automatically collect Impressum (legal notice) pages from websites using Playwright.

Installation

poetry shell
poetry install
playwright install

Usage

As a Python Package

After installation, you can import and use the package in your Python code:

import asyncio
from impressum_helvetica.collect_impressum import capture_and_return_impressum_url

# Capture impressum for a single website
async def main():
    
    # Capture and get the impressum URL
    impressum_url = await capture_and_return_impressum_url("interdiscount.ch")
    print(f"Found impressum at: {impressum_url}")

# Run the async function
asyncio.run(main())

Command Line Interface

Single website

python impressum_helvetica/collect_impressum.py digitec.ch
python impressum_helvetica/collect_impressum.py interdiscount.ch

Batch processing

python impressum_helvetica/collect_impressum.py

Processes all hostnames from impressum_helvetica/hostnames.py that don't have Impressum URLs yet.

Examples

The tool automatically:

  • Finds Impressum links using multilingual keywords (German, English, French)
  • Handles cookie consent banners
  • Captures full-page screenshots
  • Saves HTML content

Output Structure

results/
├── html/
│   ├── example.ch.html
└── img/
    ├── example.ch.png

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

impressum_helvetica-0.1.2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

impressum_helvetica-0.1.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file impressum_helvetica-0.1.2.tar.gz.

File metadata

  • Download URL: impressum_helvetica-0.1.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for impressum_helvetica-0.1.2.tar.gz
Algorithm Hash digest
SHA256 823a516faaf8277bbf535c9fe237eb4dee8be81fca741a423ceadba8dfd8fa9a
MD5 08ed5f271b09025cf991174121ad0f49
BLAKE2b-256 5b6b138ad6858ae4a14e583f0ba5e7279642c19991de57d71c4055f22c879d4e

See more details on using hashes here.

File details

Details for the file impressum_helvetica-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for impressum_helvetica-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 81d73c8139146dc378d319114e7cc8a70b95e83613c2e1d7165c62e73d241e35
MD5 dc10d4157b1ebec1d6e43f1276c759e6
BLAKE2b-256 395985613cb2886c23541c91806ba2850887f57544167788d6b5da75405cf23c

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