Skip to content

Instantly share code, notes, and snippets.

View aarmora's full-sized avatar

Jordan Hansen aarmora

View GitHub Profile
@aarmora
aarmora / index.ts
Created February 19, 2024 16:57
fetch-requests-from-puppeteer
import puppeteerExtra from 'puppeteer-extra';
import puppeteerStealth from 'puppeteer-extra-plugin-stealth';
import puppeteer from 'puppeteer';
(async () => {
const params = {
"pagination": {},
"usersSearchTerm": "Atlanta, GA",
mapBounds: {
"west": -84.4672891672287,
@aarmora
aarmora / retry_business_details.py
Created February 15, 2024 18:14
Python retryId recursive funciton
import requests
import asyncio
async def retry_business_details(retry_id, retry_count=0, screenshot=False, ucc_data=None, street=None, city=None, zip_code=None):
url = f"https://apigateway.cobaltintelligence.com/v1/search?retryId={retry_id}"
if hasattr(self, 'targeted_environment'):
url = f"https://apigateway.cobaltintelligence.com/{self.targeted_environment}/search?retryId={retry_id}"
if screenshot:
@aarmora
aarmora / Arrays
Last active August 7, 2022 22:34
const people = [
{
name: 'Jordan'
},
{
name: 'Jae'
}
];
people.push({
@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/",
@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 / 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 / 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 / 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 / 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 / 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 : [];