diff --git a/recruitment/src/recruitment/tools/client.py b/recruitment/src/recruitment/tools/client.py index 0fad31d1..51b9d1ca 100644 --- a/recruitment/src/recruitment/tools/client.py +++ b/recruitment/src/recruitment/tools/client.py @@ -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 diff --git a/recruitment/src/recruitment/tools/linkedin.py b/recruitment/src/recruitment/tools/linkedin.py index aeb8275b..7c35709c 100644 --- a/recruitment/src/recruitment/tools/linkedin.py +++ b/recruitment/src/recruitment/tools/linkedin.py @@ -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)