Skip to content

Instantly share code, notes, and snippets.

View adrianhorning08's full-sized avatar

Adrian Horning adrianhorning08

View GitHub Profile
{
"ffRef": "pp_recom",
"products": [
{
"trackers": {},
"productId": 16864846,
"productName": "Low Vulcanized canvas sneakers",
"brandName": "Off-White",
"storeId": 12572,
"detailUrl": "/shopping/men/off-white-low-vulcanized-canvas-sneakers-item-16864846.aspx?storeid=12572",
[
{
"id": 2,
"name": "Ravikant Capital",
"avatar_url": "https://cdn.angellist.com/rfunds/2-original?1582012656",
"gp_name": "Naval Ravikant",
"min_subscription": 2500000,
"min_period": 1,
"base_carry": 25,
"max_carry": 30,
function getAbout(json) {
const aboutComponent = json?.included?.find((d) =>
d.entityUrn?.includes("ABOUT")
);
return aboutComponent?.topComponents?.[1]?.components?.textComponent?.text
?.text;
}
function getExperience(json) {
const experienceEntity = json?.included?.find(
@adrianhorning08
adrianhorning08 / chase.json
Created July 25, 2023 23:10
Chase Down Detector
{
"id": 20025,
"status": "danger",
"max_baseline": 5,
"min_baseline": 1,
"regionalCommunicate": false,
"communicate": null,
"company": "Chase",
"max": 1554,
"series": {
@adrianhorning08
adrianhorning08 / zips.js
Created July 26, 2023 21:01
Zips Watching
const zips = [
60043, 60093, 60521, 60522, 60022, 60045, 62367, 60091, 60044, 60015,
60035, 60040, 60048, 49506, 48303, 48304, 48167, 53092, 53097, 53211,
53217, 55110, 55115, 60643, 46032, 46033, 46074, 46077, 46082, 46240,
46260, 46280, 46290, 53005, 53122, 53008, 53045, 53072, 62294, 55328,
53012, 54115, 54344, 60514, 55343, 55410, 55436, 55416, 55439, 55424,
46774, 46801, 46802, 46803, 46804, 46805, 46806, 46807, 46808, 46809,
46814, 46815, 46816, 46818, 46819, 46825, 46835, 46845, 46850, 46851,
46852, 46853, 46854, 46855, 46856, 46857, 46858, 46859, 46860, 46861,
46862, 46863, 46864, 46865, 46866, 46867, 46868, 46869, 46885, 46895,
@adrianhorning08
adrianhorning08 / googleMaps.js
Created August 4, 2023 23:17
Scrape Google Maps
import * as cheerio from "cheerio";
import puppeteerExtra from "puppeteer-extra";
import stealthPlugin from "puppeteer-extra-plugin-stealth";
import chromium from "@sparticuz/chromium";
async function searchGoogleMaps() {
try {
const start = Date.now();
puppeteerExtra.use(stealthPlugin());
{
"properties": {
"title": "Asana",
"short_description": "Asana is a computer software company that specializes in the fields of work management and productivity.",
"facet_ids": [
"contact",
"siftery",
"ipqwery",
"privco",
"aberdeen",
@adrianhorning08
adrianhorning08 / googleJobs.js
Created August 11, 2023 16:44
Google Jobs Scraper
import * as cheerio from "cheerio";
import fs from "graceful-fs";
import puppeteerExtra from "puppeteer-extra";
import stealthPlugin from "puppeteer-extra-plugin-stealth";
import chromium from "@sparticuz/chromium";
(async function () {
console.log("starting");
let term = "marketing";
@adrianhorning08
adrianhorning08 / linkedinJobs.js
Created August 11, 2023 17:06
Linkedin Jobs Scraper
import fetch from "node-fetch";
import fs from "graceful-fs";
import * as cheerio from "cheerio";
async function getJob(id) {
try {
const response = await fetch(
`https://www.linkedin.com/jobs-guest/jobs/api/jobPosting/${id}`,
{
// agent: getProxyAgent(), put proxy here