Skip to content

Commit

Permalink
Merge pull request #161 from ItaloGustavoS/patch-1
Browse files Browse the repository at this point in the history
Adding the ability for the Selenium driver to scrape the user's profile link and add it to the report.
  • Loading branch information
theCyberTech authored Sep 13, 2024
2 parents bdd7ee6 + ac276a8 commit f3ccec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions recruitment/src/recruitment/tools/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def find_people(self, skills):
result["name"] = person.find_element(By.CSS_SELECTOR, "span.entity-result__title-line").text
result["position"] = person.find_element(By.CSS_SELECTOR, "div.entity-result__primary-subtitle").text
result["location"] = person.find_element(By.CSS_SELECTOR, "div.entity-result__secondary-subtitle").text
result["profile_link"] = person.find_element(By.CSS_SELECTOR, "a.app-aware-link").get_attribute("href")
except Exception as e:
print(e)
continue
Expand Down
3 changes: 2 additions & 1 deletion recruitment/src/recruitment/tools/linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def _format_publications_to_text(self, people):
"-------------",
p['name'],
p['position'],
p['location']
p['location'],
p["profile_link"],
]) for p in people]
result = "\n\n".join(result)

Expand Down

0 comments on commit f3ccec1

Please sign in to comment.