Created
December 5, 2019 07:03
-
-
Save jbauers/432d5753466e88681901d73f84408d27 to your computer and use it in GitHub Desktop.
ImmobilienScout 24 results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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