From 60cffcd32ac8c4c74cc819aa2a16c8cde37dc7f0 Mon Sep 17 00:00:00 2001 From: elberb Date: Tue, 15 Nov 2022 12:10:08 -0700 Subject: [PATCH] Add network_info Added network_info. --- iscraper/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iscraper/client.py b/iscraper/client.py index cc68205..0b31c88 100644 --- a/iscraper/client.py +++ b/iscraper/client.py @@ -71,7 +71,7 @@ def _parse_id(self, url: str): parsed = urlparse(url) return str(parsed.path.rstrip('/').split('/')[-1]).strip() - def profile_details(self, url: str, profile_type: str = 'personal', contact_info: bool = False, recommendations: bool = False, related_profiles: bool = False): + def profile_details(self, url: str, profile_type: str = 'personal', contact_info: bool = False, recommendations: bool = False, related_profiles: bool = False, network_info: bool = False): """Get details for personal and company LinkedIn profiles. Args: @@ -80,6 +80,7 @@ def profile_details(self, url: str, profile_type: str = 'personal', contact_info contact_info (bool, optional): Either to fetch the available contact info for a user or not. recommendations (bool, optional): Either to fetch the available recommendations or not. related_profiles (bool, optional): Either to get the available related profiles or not. + network_info (bool, optional): Either to get the number of followers and connections or not. Returns: @@ -92,7 +93,8 @@ def profile_details(self, url: str, profile_type: str = 'personal', contact_info 'profile_type': profile_type, 'contact_info': contact_info, 'recommendations': recommendations, - 'related_profiles': related_profiles + 'related_profiles': related_profiles, + 'network_info': network_info } return self._send_request(path=path, data=data)