Skip to content

Remove stale district field from CLI output#41

Open
sepe81 wants to merge 1 commit into
bundesAPI:mainfrom
sepe81:fix/issue-33-stale-district-field
Open

Remove stale district field from CLI output#41
sepe81 wants to merge 1 commit into
bundesAPI:mainfrom
sepe81:fix/issue-33-stale-district-field

Conversation

@sepe81

@sepe81 sepe81 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • parse_result stopped populating d['district'] in 64130d0, but pr_company_info kept printing a district tag, so the CLI always showed district: -.
  • Removes the stale reference so CLI output only shows fields that are actually populated.

Relates to #33 — verified the scraper works correctly against the current handelsregister.de page structure (the underlying fix landed in #34); this just cleans up leftover dead output from that fix.

Test plan

  • pytest — all 18 tests pass
  • Ran handelsregister.py -s "cukoo GmbH" and -s "Gasag AG" against the live site and confirmed clean output

@sepe81 sepe81 force-pushed the fix/issue-33-stale-district-field branch from 68c7a19 to 16c7e40 Compare July 2, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant