Skip to content

Instantly share code, notes, and snippets.

@jbauers
Created December 5, 2019 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbauers/432d5753466e88681901d73f84408d27 to your computer and use it in GitHub Desktop.
Save jbauers/432d5753466e88681901d73f84408d27 to your computer and use it in GitHub Desktop.
ImmobilienScout 24 results
#!/usr/bin/env bash
bundesland=''
ort=''
url="https://www.immobilienscout24.de/Suche/de/${bundesland}/${ort}/wohnung-kaufen?sorting=2&pagenumber="
for i in {1..2}
do
curl "${url}${i}" | grep "resultListModel" | cut -d':' -f2- | jq \
'.searchResponseModel["resultlist.resultlist"]["resultlistEntries"][]["resultlistEntry"][]["resultlist.realEstate"] | "\(.title) \(.address) \(.price) \(.livingSpace)"'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment