Skip to content

Commit

Permalink
Merge pull request #8 from decodingml/module-1/fix-linkedin-crawler
Browse files Browse the repository at this point in the history
fixed linkedin crawler in linkedin.py
  • Loading branch information
iusztinpaul authored Apr 26, 2024
2 parents 4633cb3 + 09bb415 commit cc4a955
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions course/module-1/crawlers/linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ def extract(self, link: str, **kwargs):
"Education": self._scrape_education(link),
}

self.driver.get(link)
time.sleep(5)
button = self.driver.find_element(By.CSS_SELECTOR,
".app-aware-link.profile-creator-shared-content-view__footer-action")
button.click()

# Scrolling and scraping posts
self.scroll_page()
soup = BeautifulSoup(self.driver.page_source, "html.parser")
Expand Down

0 comments on commit cc4a955

Please sign in to comment.