Skip to content

Instantly share code, notes, and snippets.

View adrianhorning08's full-sized avatar

Adrian Horning adrianhorning08

View GitHub Profile
@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());
@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 / 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": {
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(
[
{
"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,
{
"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",
function convertHtml(text) {
const newHtml = text.replace(/&gt;/g, ">").replace(/&lt;/g, "<");
return newHtml;
}
async function renderPageToHtml(page) {
const iframes = await page.$$("iframe");
for (const iframe of iframes) {
const frame = await iframe.contentFrame();
if (!frame) continue;
This file has been truncated, but you can view the full file.
{"prompt":"Compose a twitter thread in the style of @thesamparr based on this topic: Barstool.\n\n###\n\n","completion":" More info on the barstool deal. - Nearly $100m in profitable revenue in 2019. 53% growth in 2018, 65% in 19. So if assume $90m in 2019 then assume $61m in 18 and $32m in 2017 (my math right?) - Was valued at $15m in 2016. - 63% of readers are gamblers. - Goal is to get Barstool's personalities to drive to penn. - Penn's stock is up like 25% since the deal. Market cap is up nearly $1b!!!. - Penn paid $125m in cash for a stake valuing the business at $400m More here:###"}
{"prompt":"Compose a twitter thread in the style of @thesamparr based on this topic: Hair styles.\n\n###\n\n","completion":" Razor shaved my head bald. Holy hell. Feels so good. Have a hawk. But game. To itch all the intchy parts.###"}
{"prompt":"Compose a twitter thread in the style of @thesamparr based on this topic: Thiel Fellowship.\n\n###\n\n","completion":" The Thiel Fellowship gives $100k to 25 kids a year to drop ou
import requests
import json
import smtplib
old_price = 500
def get_price():
try:
url = "https://www.bhphotovideo.com/api/item/p/product-details?from=cli&aperture=1&cliReqId=5ac45968-b1a2-43ad-9118-ef8884f1189f-cli-19"