Created
January 25, 2017 14:59
-
-
Save arciisine/b033cfad85a466d59bf42db84e8b1372 to your computer and use it in GitHub Desktop.
Extract Zillow Saved homes into excel pastable format
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
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