Last active
September 5, 2022 17:37
given a redfin home url, download all pictures
This file contains hidden or 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 | |
while getopts u: flag | |
do | |
case "${flag}" in | |
u) url=${OPTARG};; | |
esac | |
done | |
wget --user-agent="Mozilla" -O - $url | egrep -o "https:\\\\u002F\\\\u002Fssl.cdn-redfin.com\\\\u002Fphoto\\\\u002F\d*\\\\u002Fbigphoto\\\\u002F\d*\\\\u002F[A-Z0-9_]*.jpg" | ascii2uni -Z '\u%04X' | xargs wget --user-agent="Mozilla" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to download photos from Redfin?