Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

company.py: update class name to artdeco-card.p5.mb4 #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions linkedin_scraper/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def scrape_logged_in(self, get_employees = True, close_on_complete = True):
section_id = 3
#section ID is no longer needed, we are using class name now.
#grid = driver.find_elements_by_tag_name("section")[section_id]
grid = driver.find_element_by_class_name("artdeco-card.p4.mb3")
grid = driver.find_element_by_class_name("artdeco-card.p5.mb4")
print(grid)
descWrapper = grid.find_elements_by_tag_name("p")
if len(descWrapper) > 0:
Expand Down Expand Up @@ -346,6 +346,6 @@ def __repr__(self):
_output['founded'] = self.founded
_output['affiliated_companies'] = self.affiliated_companies
_output['employees'] = self.employees

return json.dumps(_output).replace('\n', '')