Skip to content

Instantly share code, notes, and snippets.

View aarmora's full-sized avatar

Jordan Hansen aarmora

View GitHub Profile
@aarmora
aarmora / getTheTarrantProperties.js
Last active May 7, 2021 10:38
Get tax auction properties from Tarrant county Texas
// Paste this in the dev tool console on the first page
// Url for first page:
// http://taxsales.lgbs.com/api/property_sales/?county=TARRANT+COUNTY&in_bbox=-97.81837825%2C32.63414250204854%2C-96.76369075%2C32.908386958200026&offset=0&ordering=precinct%2Csale_nbr%2Cuid&results=50&sale_type=SALE%2CRESALE%2CSTRUCK+OFF%2CFUTURE+SALE&state=TX
function getTheProperties() {
// Get any existing stuff
allThePropertiesThusFar = JSON.parse(window.localStorage.getItem('realEstateProperties'));
// If we don't have any yet, let's set it to an array
allThePropertiesThusFar = allThePropertiesThusFar ? allThePropertiesThusFar : [];
@aarmora
aarmora / getDallasCountyProperties.js
Last active May 7, 2021 09:20
Get tax auction properties from Dallas county Texas
// Paste this in the dev tool console on the first page
// Url for first page:
// http://taxsales.lgbs.com/api/property_sales/?county=DALLAS+COUNTY&in_bbox=-98.70656976545521,31.818437984234997,-95.33156963134476,33.01202689344402&offset=0&ordering=precinct,sale_nbr,uid&sale_type=SALE,RESALE,STRUCK+OFF,FUTURE+SALE&state=TX
function getTheProperties() {
// Get any existing stuff
allThePropertiesThusFar = JSON.parse(window.localStorage.getItem('realEstateProperties'));
// If we don't have any yet, let's set it to an array
allThePropertiesThusFar = allThePropertiesThusFar ? allThePropertiesThusFar : [];
@aarmora
aarmora / getAngelinaCountyProperties.js
Created May 6, 2021 19:09
Get tax auction properties from Angelina county Texas
// Paste this in the dev tool console on the first page
// Url for first page:
// http://taxsales.lgbs.com/api/property_sales/?county=ANGELINA+COUNTY&in_bbox=-95.62192173425001,30.916356125972055,-93.51254673425001,31.635837153739583&offset=0&ordering=precinct,sale_nbr,uid&sale_type=SALE,RESALE,STRUCK+OFF,FUTURE+SALE&state=TX
function getTheProperties() {
// Get any existing stuff
allThePropertiesThusFar = JSON.parse(window.localStorage.getItem('realEstateProperties'));
// If we don't have any yet, let's set it to an array
allThePropertiesThusFar = allThePropertiesThusFar ? allThePropertiesThusFar : [];
@aarmora
aarmora / getWoodCountyProperties.js
Created May 6, 2021 19:11
Get tax auction properties from Wood county Texas
// Paste this in the dev tool console on the first page
// Url for first page:
// http://taxsales.lgbs.com/api/property_sales/?county=WOOD+COUNTY&in_bbox=-96.46318790270001,32.42253239680847,-94.35381290270001,33.13032370909818&offset=0&ordering=precinct,sale_nbr,uid&sale_type=SALE,RESALE,STRUCK+OFF,FUTURE+SALE&state=TX
function getTheProperties() {
// Get any existing stuff
allThePropertiesThusFar = JSON.parse(window.localStorage.getItem('realEstateProperties'));
// If we don't have any yet, let's set it to an array
allThePropertiesThusFar = allThePropertiesThusFar ? allThePropertiesThusFar : [];
@aarmora
aarmora / getMiamiDadeProperties.js
Last active May 14, 2021 11:24
This will get all tax properties from a specific Miami-Dade tax auction.
// Url to which you navigate to see all auctions
// https://www.miamidade.realforeclose.com/index.cfm?zaction=USER&zmethod=CALENDAR
// You must be in a specific auction to run the code. Example:
// https://www.miamidade.realforeclose.com/index.cfm?zaction=AUCTION&Zmethod=PREVIEW&AUCTIONDATE=06/14/2021
// Parses the data returned from propery ajax request
function parseData(data){
let html = data.retHTML;
html = html.replace(/@A/g,'<div class="');
@aarmora
aarmora / getBrowardProperties.js
Last active May 14, 2021 11:36
This will get all tax properties from a specific Broward county tax auction.
// Url to which you navigate to see all auctions
// https://broward.realforeclose.com/index.cfm?zaction=USER&zmethod=CALENDAR
// You must be in a specific auction to run the code. Example:
// https://broward.realforeclose.com/index.cfm?zaction=AUCTION&Zmethod=PREVIEW&AUCTIONDATE=05/18/2021
// Parses the data returned from propery ajax request
function parseData(data){
let html = data.retHTML;
html = html.replace(/@A/g,'<div class="');
@aarmora
aarmora / getBrevardProperties.js
Last active May 14, 2021 11:41
This will get all tax properties from a specific Brevard county tax auction.
// Url to which you navigate to see all auctions
// https://brevard.realforeclose.com/index.cfm?zaction=USER&zmethod=CALENDAR
// You must be in a specific auction to run the code. Example:
// https://brevard.realforeclose.com/index.cfm?zaction=AUCTION&Zmethod=PREVIEW&AUCTIONDATE=05/20/2021
// Parses the data returned from propery ajax request
function parseData(data){
let html = data.retHTML;
html = html.replace(/@A/g,'<div class="');
@aarmora
aarmora / getOrangeFLProperties.js
Last active May 14, 2021 12:16
This will get all tax properties from a specific Orange county, FL tax auction.
// Url to which you navigate to see all auctions
// https://myorangeclerk.realforeclose.com/index.cfm?zaction=USER&zmethod=CALENDAR
// You must be in a specific auction to run the code. Example:
// https://myorangeclerk.realforeclose.com/index.cfm?zaction=AUCTION&Zmethod=PREVIEW&AUCTIONDATE=05/25/2021
// Parses the data returned from propery ajax request
function parseData(data){
let html = data.retHTML;
html = html.replace(/@A/g,'<div class="');
@aarmora
aarmora / getKingCountyWATaxAuctions.js
Last active May 27, 2021 13:01
Get tax auction properties from King county WA
// Run this function at the following url:
// https://kingcounty.gov/depts/finance-business-operations/treasury/foreclosure/current-foreclosure-action/foreclosure-properties.aspx
async function getAllProperties(copy) {
const data = await fetch("https://data.kingcounty.gov/api/views/nx4x-daw6/rows.json", {
"headers": {
"accept": "application/json, text/javascript, */*; q=0.01",
"sec-ch-ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"90\", \"Google Chrome\";v=\"90\"",
"sec-ch-ua-mobile": "?0"
},
"referrer": "https://kingcounty.gov/",
@aarmora
aarmora / getPropertyDataKingCountyWa.js
Last active May 27, 2021 13:02
This gets additional property info for distressed properties.
// Run this function at the following url:
// https://kingcounty.gov/depts/finance-business-operations/treasury/foreclosure/current-foreclosure-action/foreclosure-properties.aspx
async function getAllProperties(copy) {
const data = await fetch("https://data.kingcounty.gov/api/views/nx4x-daw6/rows.json", {
"headers": {
"accept": "application/json, text/javascript, */*; q=0.01",
"sec-ch-ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"90\", \"Google Chrome\";v=\"90\"",
"sec-ch-ua-mobile": "?0"
},
"referrer": "https://kingcounty.gov/",