Skip to content

feat(lib-provider): add deutsche wohnen provider#365

Open
rmargar wants to merge 1 commit into
orangecoding:masterfrom
rmargar:add-deutsche-wohnen-provider
Open

feat(lib-provider): add deutsche wohnen provider#365
rmargar wants to merge 1 commit into
orangecoding:masterfrom
rmargar:add-deutsche-wohnen-provider

Conversation

@rmargar

@rmargar rmargar commented Jul 15, 2026

Copy link
Copy Markdown

Summary

Adds a Deutsche Wohnen provider that fetches rental listings from the site's JSON API (/api/deuwo-real-estate/list). Users paste a normal search URL from deutsche-wohnen.com; Fredy translates it to the API endpoint. Detail enrichment parses the data-vonovia-data attribute on listing pages.

Includes provider module, offline tests/fixtures, fixture downloader support, and README update. Auto-discovered like other providers — no UI changes.

Test plan

  • TEST_MODE=offline npx vitest run test/provider/deutscheWohnen.test.js
  • Full offline suite passes (npm run test:offline)
  • Manual: create a job with a Deutsche Wohnen Berlin rental URL and verify listings appear in the UI
image

Comment thread README.md
time-consuming.\
**Fredy** makes it easier: it automatically scrapes **ImmoScout24,
Immowelt, Immonet, eBay Kleinanzeigen, and WG-Gesucht** and notifies you
Immowelt, Immonet, Deutsche Wohnen, eBay Kleinanzeigen, and WG-Gesucht** and notifies you

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "Deutsche Wohnen" is not so important to be mentioned in the readme ;)

Comment thread README.md
## ✨ Key Features

- 🏠 Scrapes **ImmoScout24, Immowelt, Immonet, eBay Kleinanzeigen,
- 🏠 Scrapes **ImmoScout24, Immowelt, Immonet, Deutsche Wohnen, eBay Kleinanzeigen,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Comment thread README.md

A **provider** is a real-estate platform (e.g. ImmoScout24, Immowelt,
Immonet, eBay Kleinanzeigen, WG-Gesucht).\
Immonet, Deutsche Wohnen, eBay Kleinanzeigen, WG-Gesucht).\

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I think it is ok


if (name === 'immoscout') {
await downloadImmoscoutFixtures(provider.config.url);
} else if (name === 'deutscheWohnen') {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we instead of a if-else use a switch case here please?

*/
async function fetchDetails(listing, browser) {
try {
const html = await puppeteerExtractor(listing.link, 'body', { browser, name: 'deutscheWohnen_details' });

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason on the general list you use fetch and here you use puppeteer?

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.

2 participants