-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
when i run your jupytor notebook's code it give this error on 4th table
/tmp/ipykernel_29774/2924215273.py:2: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
browser = webdriver.Chrome(path)
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
Cell In [11], line 4
2 browser = webdriver.Chrome(path)
3 login(browser)
----> 4 connections = connections_scraper(browser)
5 browser.quit()
6 connections.to_csv('connections.csv')
Cell In [10], line 6, in connections_scraper(browser)
4 soup = BeautifulSoup(browser.page_source, 'html.parser')
5 conn_num = soup.find_all('h3', class_='search-results__total')
----> 6 num = int(conn_num[0].text.strip().split()[0])
7 time.sleep(3)
8 i = 2
IndexError: list index out of range
Please Solve this issue if you are free. this would be very helpful
RaviR8611
Metadata
Metadata
Assignees
Labels
No labels