|
11 | 11 |
|
12 | 12 | class Person(Scraper): |
13 | 13 |
|
14 | | - __TOP_CARD = "pv-top-card" |
| 14 | + __TOP_CARD = "scaffold-layout__main" |
15 | 15 | __WAIT_FOR_ELEMENT_TIMEOUT = 5 |
16 | 16 |
|
17 | 17 | def __init__( |
@@ -115,7 +115,7 @@ def get_experiences(self): |
115 | 115 | self.scroll_to_bottom() |
116 | 116 | main_list = self.wait_for_element_to_load(name="pvs-list", base=main) |
117 | 117 | for position in main_list.find_elements(By.XPATH,"li"): |
118 | | - position = position.find_element(By.CLASS_NAME,"pvs-entity") |
| 118 | + position = position.find_element(By.CLASS_NAME,"pvs-entity--padded") |
119 | 119 | company_logo_elem, position_details = position.find_elements(By.XPATH,"*") |
120 | 120 |
|
121 | 121 | # company elem |
@@ -240,9 +240,9 @@ def get_educations(self): |
240 | 240 | self.add_education(education) |
241 | 241 |
|
242 | 242 | def get_name_and_location(self): |
243 | | - top_panels = self.driver.find_elements(By.CLASS_NAME,"pv-text-details__left-panel") |
244 | | - self.name = top_panels[0].find_elements(By.XPATH,"*")[0].text |
245 | | - self.location = top_panels[1].find_element(By.TAG_NAME,"span").text |
| 243 | + top_panel = self.driver.find_element(By.XPATH, "//*[@class='mt2 relative']") |
| 244 | + self.name = top_panel.find_element(By.TAG_NAME, "h1").text |
| 245 | + self.location = top_panel.find_element(By.XPATH, "//*[@class='text-body-small inline t-black--light break-words']") |
246 | 246 |
|
247 | 247 |
|
248 | 248 | def get_about(self): |
|
0 commit comments