Skip to content

Instantly share code, notes, and snippets.

View ArthurSrz's full-sized avatar
🎯
Focusing

ArthurSrZ ArthurSrz

🎯
Focusing
View GitHub Profile
@adrianhorning08
adrianhorning08 / scrapeLinkedinSearch.js
Last active January 13, 2024 23:39
Scrape Linkedin Search
async function scrapeLinkedinSearch() {
let allProfiles = [];
let page = 1;
window.scrollTo(0, document.body.scrollHeight);
await new Promise((resolve) => setTimeout(resolve, 500));
// find the button aria-label="Next"
let nextButton = document.querySelector('button[aria-label="Next"]');
const peeps = getProfiles();
allProfiles.push(...peeps);
@adrianhorning08
adrianhorning08 / zillowScraper.js
Last active April 5, 2024 07:59
Zillow Scraper
async function scrollDown() {
const wrapper = document.querySelector("#search-page-list-container");
await new Promise((resolve, reject) => {
var totalHeight = 0;
var distance = 600;
var timer = setInterval(async () => {
var scrollHeightBefore = wrapper.scrollHeight;
wrapper.scrollBy(0, distance);
totalHeight += distance;