Handelsregisternummer, USt-IdNr und E-Mail aus dem Impressum auslesen (Python)
Jede deutsche Firmenwebsite muss ein Impressum haben (§ 5 DDG). Dort stehen Firmenname, Rechtsform, Adresse, Handelsregisternummer (HRB/HRA), USt-IdNr., Geschäftsführer und Kontakt. Für Lead-Listen und KYB-Checks ist das eine kostenlose, öffentliche Datenquelle. So lest ihr sie aus. 1. Einfacher Ansatz mit Regex import httpx , re def impressum_basics ( url : str ) -> dict : html = httpx . get (…
This article provides a Python method to extract key information from a German company's Impressum page, such as Handelsregisternummer (HRB/HRA), USt-IdNr, and email addresses. The code uses HTTP requests and regex to parse the HTML content of the Impressum page, and can handle multiple entries for companies on the same page. The author also mentions a ready-to-use Apify actor for scraping Impressum data for bulk lists, which provides a more comprehensive dataset including addresses, court information, and social links.
The scraped data is publicly available but must be used responsibly, considering GDPR regulations for personal data.
Brief written by urgent.news; may contain errors — check the original.
Source: dev.to