π―
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
| // Usage | |
| class Kernel extends HttpKernel | |
| { | |
| // ..... | |
| // ..... | |
| // ..... | |
| protected $routeMiddleware = [ | |
| // ..... |
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
| 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; |
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 clickAccessEmailIfAvailable() { | |
| const tbodys = document.querySelectorAll( | |
| ".finder-results-list-panel-content table tbody" | |
| ); | |
| for (let i = 0; i < tbodys.length; i++) { | |
| const tbody = tbodys[i]; | |
| const buttons = tbody.querySelectorAll("button"); | |
| // Create an array to store buttons with text including "Access Email" | |
| const filteredButtons = []; |
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
| 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); |
OlderNewer