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
function writeZestimateToSheet() { | |
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheets = spreadsheet.getSheets(); | |
var zillowSheet = sheets.find(sheet => sheet.getSheetName() == 'Zillow'); | |
var balanceHistory = sheets.find(sheet => sheet.getSheetName() == 'Balance History'); | |
if (zillowSheet && balanceHistory) { | |
var zillowIds = ['%%%%%%%%%']; | |
var row = []; | |
for (i = 0; i < zillowIds.length; i++) { | |
if (zillowIds[i] != undefined){ |
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
function writeZestimateToSheet() { | |
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheets = spreadsheet.getSheets(); | |
var zillowSheet = sheets.find(sheet => sheet.getSheetName() == 'Zillow'); | |
if (zillowSheet) { | |
var html = UrlFetchApp.fetch('https://www.zillow.com/homes/%%%%%%%%%_zpid/').getContentText(); | |
const divRegex = /(<div class="zestimate-value">)(\$)(\d{1,3})(,\d{3})*(<\/div>)/g; | |
const moneyRegex = /(\$)(\d{1,3})(,\d{3})*/g; | |
var div = html.match(divRegex); |
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
function isDope(object) { | |
return object.tagName === 'BUTTON'; | |
} | |
var arr = Array.from(document.getElementsByClassName('thumbs-up ')); | |
var button = arr.find(isDope); | |
setInterval(function() { | |
button.click(); | |
console.log('clicked!'); | |
}, 20000); |