Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scrape.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,15 @@ const scrapeLinkedIn = async (data) => {
});

//Visit all employees from the company's page
await page.click("a.ember-view.link-without-visited-state.inline-block");
await page.click(".artdeco-card__actions>ul>li:nth-child(6)");
} catch (e) {
console.error(
"Oops! An error occured while trying to find the company's page." +
"\n" +
"The reason for this error can be either the browser was closed while execution or you entered invalid data in env file." +
"\n" +
"Please check the LinkedIn handle of the company you're trying to find and your credentials and try again."
"Please check the LinkedIn handle of the company you're trying to find and your credentials and try again.",
e
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@utkarshsingh99 Was this change made on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was for debugging purposes. I'll revert it once the issue is resolved.

);
await browser.close();
}
Expand Down