This file contains hidden or 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 getHandle(linkedinProfileUrl) { | |
const url = getLinkedinProfileUrl(linkedinProfileUrl); | |
return url?.split("/in/")?.[1]; | |
} | |
function getLinkedinProfileUrl(navigationUrl) { | |
return navigationUrl?.split("?")?.[0]; | |
} | |
export async function searchLinkedIn(query) { |
This file contains hidden or 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
{ | |
"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", |
This file contains hidden or 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
[ | |
{ | |
"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, |
This file contains hidden or 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 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( |
This file contains hidden or 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
{ | |
"id": 20025, | |
"status": "danger", | |
"max_baseline": 5, | |
"min_baseline": 1, | |
"regionalCommunicate": false, | |
"communicate": null, | |
"company": "Chase", | |
"max": 1554, | |
"series": { |
This file contains hidden or 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
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, |
This file contains hidden or 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
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()); |
This file contains hidden or 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
{ | |
"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", |
This file contains hidden or 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
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"; |
This file contains hidden or 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
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 |