Skip to content

Instantly share code, notes, and snippets.

@pigoz
Last active January 17, 2017 13:59
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 pigoz/8594644eed9efec9afb1b415a3906f47 to your computer and use it in GitHub Desktop.
Save pigoz/8594644eed9efec9afb1b415a3906f47 to your computer and use it in GitHub Desktop.
download listing images from airbnb
const x = JSON.parse($('[data-hypernova-key=listingbundlejs]')[1].text.slice(4, -3))
console.log(x.listing.photos.map(x => x.xx_large).join("\n"))
paste list inside echo
echo "" > list.txt
wget -i list.txt
for i in `ls *.jpg?*`; do echo $i | cut -f 1 -d \? | xargs -n1 mv $i ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment