Skip to content

Instantly share code, notes, and snippets.

@arciisine
Created January 25, 2017 14:59
Show Gist options
  • Save arciisine/b033cfad85a466d59bf42db84e8b1372 to your computer and use it in GitHub Desktop.
Save arciisine/b033cfad85a466d59bf42db84e8b1372 to your computer and use it in GitHub Desktop.
Extract Zillow Saved homes into excel pastable format
let out = '';
for (let node of document.querySelectorAll('ul .zsg-photo-card-caption')) {
out += node.querySelector('.zsg-photo-card-address').innerHTML.replace(/,/g, '\t') +'\t'+
node.querySelector('.zsg-photo-card-price').innerHTML + '\t' +
node.querySelector('.zsg-photo-card-info').innerHTML
.replace(/<[^>]+>/g,'')
.replace(/ · /g, '\t')
.replace(/[ a-z]+/g, '') +
'\n';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment