Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -260,8 +260,14 @@ class linkedin_scraper:
|
|
260 |
driver.implicitly_wait(10)
|
261 |
time.sleep(1)
|
262 |
|
|
|
|
|
|
|
|
|
|
|
263 |
except NoSuchElementException:
|
264 |
# Open the URL
|
|
|
265 |
driver.get(website_url[i])
|
266 |
driver.implicitly_wait(10)
|
267 |
time.sleep(1)
|
|
|
260 |
driver.implicitly_wait(10)
|
261 |
time.sleep(1)
|
262 |
|
263 |
+
# Click on Show More Button
|
264 |
+
driver.find_element(by=By.CSS_SELECTOR, value='button[data-tracking-control-name="public_jobs_show-more-html-btn"]').click()
|
265 |
+
driver.implicitly_wait(10)
|
266 |
+
time.sleep(1)
|
267 |
+
|
268 |
except NoSuchElementException:
|
269 |
# Open the URL
|
270 |
+
driver.get('https://www.google.com/')
|
271 |
driver.get(website_url[i])
|
272 |
driver.implicitly_wait(10)
|
273 |
time.sleep(1)
|