neopostmodern / wohnungsbot

Der Wohnungsbot — die Anwendung zum 2. Akt ("Das Versprechen des Bots") des Automatisierungsdramas in drei Akten "Von einem der auszog eine Wohnung in Berlin zu finden" von Clemens Schöll
https://wohnungsbot.de
GNU Affero General Public License v3.0
150 stars 27 forks source link

URL scheme changed #144

Closed hoelger closed 1 year ago

hoelger commented 1 year ago

Accessing https://www.immobilienscout24.de/Suche/de/berlin/berlin/Mitte-Mitte/wohnung-mieten?numberofrooms=-&livingspace=150.0-&pricetype=rentpermonth&price=-1000.0&exclusioncriteria=swapflat returns a 404 page.

After manually checking with the browser: https://www.immobilienscout24.de/Suche/de/berlin/berlin/Mitte-Mitte/wohnung-mieten is the problem, and when pasting the filter args to the new URL they are applied correctly, so that should still work.

hoelger commented 1 year ago

Turns out that e.g. the Mitte-Mitte part changes now to mitte/mitte. But...

The geocodes work for any amount of districts. So we just remove the special casing for "one district only" and then it works.