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.1.tar.gz (8.5 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.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: impressum_helvetica-0.1.1.tar.gz
  • Upload date:
  • Size: 8.5 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.1.tar.gz
Algorithm Hash digest
SHA256 78421e4b3df8c3432143a079c991261491d2c06911fc57286b960d5c11794ecc
MD5 59f67533a7af2cbb628e13540fd80d67
BLAKE2b-256 8204ef29197e947945dfd0cc5b3d2e7bffbf43ce07cc9fd3c2ed9e5b8e4ed053

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for impressum_helvetica-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc99e95d72b74d2198eb3737ccd7698ddfd18ba37e41f34b0138a0cd5d95e493
MD5 03d236d570e47bda3836044db41e74c4
BLAKE2b-256 9f1fb97ee8260215296dff2d1ea2c2cadeb015433821c8d082ec75bf1e7fb079

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