Comments (3)
Same problem, I got this error message :
Traceback (most recent call last):
File "linkedin_search.py", line 56, in
lk_get_company_info('https://www.linkedin.com/company/sicara/')
File "linkedin_search.py", line 34, in lk_get_company_info
company.scrape(close_on_complete=False, get_employees=True)
File "/Users/Louis/Library/Python/3.8/lib/python/site-packages/linkedin_scraper/company.py", line 79, in scrape
self.scrape_logged_in(get_employees = get_employees, close_on_complete = close_on_complete)
File "/Users/Louis/Library/Python/3.8/lib/python/site-packages/linkedin_scraper/company.py", line 148, in scrape_logged_in
navigation.find_elements_by_xpath("//a[@data-control-name='page_member_main_nav_about_tab']")[0].click()
IndexError: list index out of range
from linkedin_scraper.
I just pushed a fix. Try version 2.5.2
from linkedin_scraper.
Using the fix, getting following error.
IndexError Traceback (most recent call last)
in
---> 12 company = Company(linkedin_url = "https://www.linkedin.com/company/google",driver=driver,close_on_complete=False,get_employees=False)
13 set_trace()
14 print(company)
~\AppData\Roaming\Python\Python38\site-packages\linkedin_scraper\company.py in init(self, linkedin_url, name, about_us, website, headquarters, founded, company_type, company_size, specialties, showcase_pages, affiliated_companies, driver, scrape, get_employees, close_on_complete)
~\AppData\Roaming\Python\Python38\site-packages\linkedin_scraper\company.py in scrape(self, get_employees, close_on_complete)
~\AppData\Roaming\Python\Python38\site-packages\linkedin_scraper\company.py in scrape_logged_in(self, get_employees, close_on_complete)
IndexError: list index out of range
from linkedin_scraper.
Related Issues (20)
- Profile scraping errors HOT 12
- Fierfox version
- empty Interests and Accomplishments HOT 1
- Profile scraping error. HOT 6
- Scraper times out when using AWS ec2 instance or GCP VM but works well on my personal computer HOT 6
- Profile scraping error: res = description.find_element(By.TAG_NAME,"a").find_elements(By.XPATH,"*") HOT 8
- Profile scraping error on get_experiences HOT 2
- Profile scraping error HOT 3
- IndexError: list index out of range self.get_educations() HOT 3
- NoSuchElementException - Unable to locate element: {"method":"tag name","selector":"span"} HOT 5
- selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".name"} HOT 6
- UnboundLocalError: cannot access local variable 'work_times' where it is not associated with a value HOT 4
- new posts from linkedin
- add job filter keywords to avoid 429 error
- Person Scraping gets blocked by security checks HOT 1
- Update/Fix for the Issue: Not able to scrape jobs list because of depreciated selenium function
- UnboundLocalError: cannot access local variable 'work_times' where it is not associated with a value HOT 1
- Fix for Appending Paths without Checking for Query Strings in URLs HOT 1
- raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".artdeco-card.p5.mb4"} HOT 2
- ...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkedin_scraper.