Skip to content

Commit a5d9c9c

Browse files
committed
Fix timeout by resorting to main tag name
1 parent 3b072fd commit a5d9c9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linkedin_scraper/person.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class Person(Scraper):
1313

14-
__TOP_CARD = "scaffold-layout__main"
14+
__TOP_CARD = "main"
1515
__WAIT_FOR_ELEMENT_TIMEOUT = 5
1616

1717
def __init__(
@@ -276,7 +276,7 @@ def scrape_logged_in(self, close_on_complete=True):
276276
root = WebDriverWait(driver, self.__WAIT_FOR_ELEMENT_TIMEOUT).until(
277277
EC.presence_of_element_located(
278278
(
279-
By.CLASS_NAME,
279+
By.TAG_NAME,
280280
self.__TOP_CARD,
281281
)
282282
)

0 commit comments

Comments
 (0)